WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart

Tagged: hide, remove, roles, secondary

  • This topic has 1 reply, 2 voices, and was last updated 4 years, 10 months ago by Syam Mohan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 24, 2020 at 5:38 pm #100577
    Randolph Plomp
    Participant

    Hi. Its been 4 years, but I’m continuing this thread: https://wpfront.com/support/topic/remove-or-hide-secondary-roles-from-the-edit-user-page/

    You said it would be included in an update. I assume that’s this one: https://wpfront.com/user-role-editor-pro/actions-and-filters/

    When I apply that code:

    <?php
    
    add_filter( 'wpfront_ure_add_user_profile_secondary_roles', function ( $roles ) {
        return [];
    });
    
    add_filter( 'wpfront_ure_edit_user_profile_secondary_roles', function ( $roles ) {
        return [];
    });
    

    What happens is this:
    wpfront no roles for this site

    My request was to completely hide this talk of a secondary role, because the site doesn’t use them. Is there another way we can achieve this?

    I tried to undo add_action('user_new_form', array($this, 'user_new_form'), 10, 1); but I think because the plugin doesn’t instantiate to a variable I can’t modify the object later.

    Adding a class to the HTML (<table class="form-table wpfront-something-unique">) would be fine. Or if there’s no roles just not showing the output.

    Thanks. Looking forward to your reply.

    June 24, 2020 at 9:57 pm #100590
    Syam Mohan
    Keymaster

    Hi Randolph,

    Sorry that it didn’t make into 2.x version. What you are asking is available in version 3.0. Even though it says ‘beta’, its production ready, I’m waiting to add a few more features and documentation before releasing it to everyone.

    Would you be open to using that version?

    Thanks

    Syam

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions