Remove Link to WP Admin in Vendor Dashboard

On my site, I give select vendors only access to the actual WP Admin backend. I use the “Adminimize” plugin to further give them access by user to extra selling features that I have not been able to integrate into the Vendor Dashboard yet, especially in the product editor.

So, when you turn on the setting to allow vendors access to the backend, it adds a link to the Vendor dashboard where the avatar is, for all the vendors. I didn’t want that, so this snippet hides that link for me.

As always, this is either added to your Child Theme’s functions.php file, or consider using the My Custom Functions Pro plugin to manage and organize all your snippets.

add_filter( 'wcmp_vendor_dashboard_header_right_panel_nav', 'filter_wcmp_vendor_dashboard_header_right_panel_nav', 10, 1 );

function filter_wcmp_vendor_dashboard_header_right_panel_nav( $panel_nav ) {
        unset($panel_nav ['wp-admin']); //remove Backend Link
        return $panel_nav ;
}

Comments on this post

Your email address will not be published. Required fields are marked *