Hey @tuham,
Thank you for reaching out and also for the kind words! I’m really glad to hear you enjoy SliceWP!
As for your question, currently this cannot be done out of the box. However, we do have this following code snippet that can help:
function slicewp_custom_admin_pages_shop_manager_capability( $capability ) {
if ( current_user_can( 'shop_manager' ) ) {
$capability = 'shop_manager';
}
return $capability;
}
add_filter( 'slicewp_menu_page_capability', 'slicewp_custom_admin_pages_shop_manager_capability' );
add_filter( 'slicewp_submenu_page_capability_dashboard', 'slicewp_custom_admin_pages_shop_manager_capability' );
add_filter( 'slicewp_submenu_page_capability_affiliates', 'slicewp_custom_admin_pages_shop_manager_capability' );
add_filter( 'slicewp_submenu_page_capability_affiliate_groups', 'slicewp_custom_admin_pages_shop_manager_capability' );
add_filter( 'slicewp_submenu_page_capability_commissions', 'slicewp_custom_admin_pages_shop_manager_capability' );
add_filter( 'slicewp_submenu_page_capability_creatives', 'slicewp_custom_admin_pages_shop_manager_capability' );
add_filter( 'slicewp_submenu_page_capability_visits', 'slicewp_custom_admin_pages_shop_manager_capability' );
add_filter( 'slicewp_submenu_page_capability_payouts', 'slicewp_custom_admin_pages_shop_manager_capability' );
add_filter( 'slicewp_submenu_page_capability_settings', 'slicewp_custom_admin_pages_shop_manager_capability' );
Please copy the code and add it to your website. If you’re not sure how to add code snippets to your site, you can use the Code Snippets plugin (https://ww.wp.xz.cn/plugins/code-snippets/).
With the code snippet, the user role that you specify will have access to SliceWP’s admin pages. By default, only administrator user roles have access.
The code snippet uses the “shop_manager” user role as an example, so please make sure to adapt the code to your needed user role.
Thank you and best wishes,
Mihai