Skip to content Skip to main menu
User Role Editor
Menu
  • Home
  • Prices
  • Download
  • Testimonials
  • Forums
  • Blog
  • ChangeLog
  • Documentation
  • Login
Home › Reply › Reply To: User Profile Fields

Change WordPress user roles and capabilities › Forums › Give user access to plugin – how to › User Profile Fields › Reply To: User Profile Fields

24/01/2023 at 04:52 #8147
Vladimir
Keymaster

Hi,

Syntax error is at the prev line – missed closing bracket ‘)’ after (‘custom_role’). It should be:


    if (current_user_can('custom_role')) {
      add_action( 'admin_footer', 'user_profile_fields_disable_js' );
    }      

Recent Topics

  • Ability to edit permissions per CPT
  • Not visible in Plugins, User Role Editor not showing in Users menu
  • User Profile Fields
  • Limit role promotion, but maintain visibility of other roles.
  • Adding capabilies are not saved on user group
  • Gravity Forms – How to enable settings for Mailchimp etc.
  • Restrict single post editing by post attribute?
  • Add a role to users on registration
  • Ajax failure trying to access URL Parameters White List
  • How to show admin bar items to specific role

Recent Replies

  • Vladimir on Ability to edit permissions per CPT 4 days, 6 hours ago
  • mutualite on Ability to edit permissions per CPT 4 days, 7 hours ago
  • Vladimir on User Profile Fields 1 week, 3 days ago
  • Vladimir on Not visible in Plugins, User Role Editor not showing in Users menu 1 week, 4 days ago
  • jaycanuck on User Profile Fields 1 week, 6 days ago
  • ElizabethM on Not visible in Plugins, User Role Editor not showing in Users menu 1 week, 6 days ago
  • ElizabethM on Not visible in Plugins, User Role Editor not showing in Users menu 1 week, 6 days ago
  • Vladimir on Not visible in Plugins, User Role Editor not showing in Users menu 1 week, 6 days ago
  • ElizabethM on Not visible in Plugins, User Role Editor not showing in Users menu 1 week, 6 days ago
  • Vladimir on Not visible in Plugins, User Role Editor not showing in Users menu 1 week, 6 days ago
  • Contact Us
  • Privacy Policy
  • Terms of use (EULA)
© 2010 - 2023 Artellect Limited. Units A-C, 25/F., Seabright Plaza, No. 9-23 Shell Street, North Point, Hong Kong. Contact: hd@role-editor.com
Share