Smart Brands for WooCommerce Pro

  1. Home
  2. Docs
  3. Smart Brands for WooCommerce Pro
  4. FAQs

FAQs

1) How to provide the plugin access to the Editors

If you want to give the plugin access to the Editor role users you can do it easily with the help of the following custom code. If you check the code you can see there is an action hook (sp_smart_brand_ui_permission) available in the plugin which allows you to modify the plugin’s functionality.

// Give access to the Editors
function sp_smart_brand_to_shop_manager($capability){
    $capability = 'edit_others_pages';
    return $capability;
}
add_filter( 'sp_smart_brand_ui_permission', 'sp_smart_brand_to_shop_manager' );