Mobile App Refresh Campaign [Banner] 2024

Product Icon

Abandoned Cart Recovery

Recover abandoned carts and pending orders to improve your store's revenue.

Wrap “capability” in a filter to allow better user role access administration

In includes/class-af-abandoned-cart-admin.php, menu pages and their callbacks are locked behind the capability ‘manage_options’. It would be nice if this was wrapped by a filter so other developers can override this as necessary.

E.g.

add_submenu_page(
[…]
apply_filters( ‘afacr_filter_capability’, ‘manage_options’ ),
[…]
);

And then elsewhere in code developers can override this with a simple

add_filter(
‘afacr_filter_capability’,
function( string $capability ): string {
return ‘delete_products’;
}
);

Author

Brent Cowing

Current Status

Open

Last updated: July 24, 2023

1 comment

Log in to comment on this feature request.

  1. Addify says:
    Product Developer July 25, 2023 7:51 am

    Hi,

    Thank you for sharing this, we have passed this on to the development team to see if this can be included in future versions.

    Thank you,