Product Icon

Abandoned Cart Recovery for WooCommerce

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,

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.