• Resolved Andrew

    (@andrew1111)


    Hello,

    Is there a way to give dashboard access to a non-admin WP user? The user would be able to see all affiliate activity.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author iova.mihai

    (@iovamihai)

    Hey @andrew1111,

    Thank you for reaching out! Currently, you can only allow other user roles to see the SliceWP admin pages via this code snippet:

    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://www.ads-software.com/plugins/code-snippets/).

    Please make sure to change the “shop_manager” role to your needed role.

    Please note that all users that have the role that you allow will be able to see the SliceWP admin pages. Currently, we don’t have a way to allow single users to see these pages. Just user roles.

    Thank you and best wishes,

    Mihai

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.