Granting access for the Shop Manager role

To manage FiboFilters settings, a user must have the manage_options capability.

By default, only site administrators can manage FiboFilters, but users with the “Shop Manager” role can also be granted this access. You can do it by applying the following PHP snippet:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
add_filter( 'fibofilters/shop_manager_has_access', '__return_true');
add_filter( 'fibofilters/shop_manager_has_access', '__return_true');
add_filter( 'fibofilters/shop_manager_has_access', '__return_true');

Learn how to add this snippet to your WordPress.