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’;
}
);
Open
Last updated: July 24, 2023
Log in to comment on this feature request.
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,