Remove wp-admin view for roles other than \'Admin\'

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Remove wp-admin view for roles other than \'Admin\'

Viewing 5 reply threads
  • Author
    Posts
    • #19058
      kasaga311
      Participant

      Hi,

      I would like to remove the wp-admin view access to all user roles other than the admin (superuser).

      We don’t want the Shop Manager and Vendor to have this access on the Product, Customers and other pages.

      Please let me know how to achieve this?

      Thanks,
      -Kasaga

      Attachments:
      You must be logged in to view attached files.
    • #19063
      WCFM Forum
      Member

      Hi,

      Kindly go through WCFM Capability, you can do all this.

      Thank You

    • #19064
      kasaga311
      Participant

      Thanks for the quick response.

      We also use the WCFM Group and Staffs plugin and have removed the ‘Backend Access’ for the Shop Manager and Vendor.

      However, we still see the wp-admin icon. Can you tell us which setting impacts that?

      Thanks,
      -Kasaga

    • #19076
      WCFM Forum
      Member

      Hi,h
      Ok, I understand. That icon for Shop Managers.i
      But they are not able to access wp-admin backend, right?

      We are just checking, that icon has to be disable with this settings.
      If not so then it’s a bug, we will fix this on next update.

      Or if you want to hide that right now then please add this code snippet to your site –

      function wcfmcap_hide_wp_admin_view( $allow ) {
        return false;
      }
      add_filter( 'wcfm_allow_wp_admin_view', 'wcfmcap_hide_wp_admin_view', 750 );

      Thank You

    • #19084
      kasaga311
      Participant

      Thanks again for your support.

      The snippet worked great and it removed the wp-admin access completely. We’ll live with it till your fix.

      Regards,
      -Kasaga

    • #19100
      WCFM Forum
      Member

      Great.

      Welcome 🙂

Viewing 5 reply threads
  • The topic ‘Remove wp-admin view for roles other than \'Admin\'’ is closed to new replies.