Forum Replies Created

Viewing 15 posts - 1,171 through 1,185 (of 2,518 total)
  • Author
    Posts
  • in reply to: Deny user profile access? #4895
    Vladimir
    Keymaster

    Thank you.

    Vladimir
    Keymaster

    Wire transfer. Write to support [at-sign] role-editor.com and I will send you my bank account details.

    Vladimir
    Keymaster

    Excuse me for misunderstanding.

    You can deactivate URE Pro. Remove old version folder wp-content/plugins-user-role-editor-pro and copy new version folder user-role-editor-pro from the .zip which you got from role-editor.com, and activate the latest version. You should not lose any bit of earlier made URE settings.

    Vladimir
    Keymaster

    The latest Pro version is 4.47. What’s the purpose of upgrade to 4.39.1?

    in reply to: Copied Admin role can't edit home page #4882
    Vladimir
    Keymaster

    Is it possible to look at your site with admin privileges? If ‘Yes’, send login credentials to support [at-sign] role-editor.com

    URE Pro is built on the top of a free version (uses free version as the core) and includes full free version copy. So there is no need to activate free and Pro versions together. Every version has built-in control and checks if other copy of URE is running already before its activation.

    in reply to: Deny user profile access? #4878
    Vladimir
    Keymaster

    s2member roles are usually used for membership and granted as the secondary roles. Right?
    Restrict admin menu for the primary role of this user or grant ‘read’ capability to this s2member role.

    in reply to: Deny user profile access? #4876
    Vladimir
    Keymaster

    Thanks for the good feedback.

    When you block admin menu item via “Admin menu access” add-on, URE blocks direct access to the URL linked to that menu item automatically. When user tries to type such URL in a browser URE redirects him to the 1st available admin menu item.

    in reply to: Deny user profile access? #4874
    Vladimir
    Keymaster

    Hi,

    You can block ‘Profile’ menu item for this role using “Admin menu access” add-on.

    in reply to: How to restore user between environments #4870
    Vladimir
    Keymaster

    Hi,

    Permissions assigned directly to users are not exported/imported by User Role Editor.
    If it’s a single user it’s much simpler just grant capabilities shown at a production site page to at this user permissions page opened at the stage server.

    If you wish to make it semi-automatically, you will need some SQL tool. Look at this command:

    
    SELECT * FROM wp_usermeta where user_id=NNN and meta_key='wp_capability';
    

    It shows user permissions stored by WordPress for this user at the database.
    NNN – is your user ID.
    ‘wp_’ is database prefix here. So you have to change it at ‘wp_usermeta’ table name and at ‘wp_capability’ value if you have another DB prefix defined at config.php.

    Then you can to copy/paste meta_value field value from the result to the previous command to a new command at the stage database connection:

    
    update wp_usermeta set meta_value='copy/pasted value here' where user_id=NNN;
    
    
    in reply to: Copied Admin role can't edit home page #4869
    Vladimir
    Keymaster

    I see your role has all capabilities from ‘posts’ and ‘pages’ groups. It’s enough to edit any post or page, in general. You need to check if your role or/and user does not have any additional restriction, may be set accidentally or by other plugin.
    1) try to deactivate User Role Editor and re-test;
    2) try to deactivate all plugins and re-test.
    In case if restriction was added by some plugin, activate plugins back one by one and make another test in order to isolate a reason.

    in reply to: Conflict with Divi? #4864
    Vladimir
    Keymaster

    Try development version 4.47.b1. It’s available after login from the Download page. It includes the fix for this issue.

    in reply to: quick edit and permalink disable for role #4863
    Vladimir
    Keymaster

    Revoke ‘delete_posts’, ‘delete_publish_posts’ capabilities from this role.

    in reply to: quick edit and permalink disable for role #4861
    Vladimir
    Keymaster

    It’s better to use current_user_can() for checking if capability was granted to a user or it was not. To check if user has role it’s more correct to use this code:

    
    $user = wp_get_current_user();
    if (in_array('some_role_id', $user->roles)) {
      // do something
    }
    
    in reply to: quick edit and permalink disable for role #4860
    Vladimir
    Keymaster

    Hi,

    You should not call current_user_can() directly from mu-plugin code. You have to enclose it into some function hooked to the action when WordPress will load it’s core code already, like this:

    
    add_action('admin_init', 'load_mu_plugin');
    function load_mu_plugin() {
      if ( current_user_can('page-editor') ) {
          add_filter('page_row_actions','remove_quick_edit',10,1);
          add_filter('post_row_actions','remove_quick_edit',10,1);
      }
    
    }
    
    in reply to: Conflict with Divi? #4858
    Vladimir
    Keymaster

    I got it. Thanks. I will work on a solution.

Viewing 15 posts - 1,171 through 1,185 (of 2,518 total)