Forum Replies Created

Viewing 15 posts - 1,726 through 1,740 (of 2,491 total)
  • Author
    Posts
  • Vladimir
    Keymaster

    Right. User should have the basic permissions. ‘edit restrictions’ just narrow them according to your input.

    Vladimir
    Keymaster

    Is this user the author of the page id 1265? ‘edit_others_pages’ capability is required in other case.

    Vladimir
    Keymaster

    What did you really do?
    You should use the sample code from this link and insert it into the active theme’s functions.php file. Did you?

    in reply to: Editor access complete media library #3068
    Vladimir
    Keymaster

    Excellent!
    The most probable problem with a separate file media.php was that it should be started from

    
    <?php
    

    characters at the separate 1st line.

    in reply to: Editor access complete media library #3057
    Vladimir
    Keymaster

    It’s for your choice:
    1) active theme’s functions.php file
    or
    2) separate .php file at the wp-content/mu-plugins/ folder as a must use plugin.

    Vladimir
    Keymaster

    Thanks for the clarification.

    Edit restriction is applied by default for all post types. As you allowed to edit just 1 page, user can not edit posts. But it’s possible to exclude selected post type from the global restriction. Use this filter ure_restrict_edit_post_type.

    in reply to: Editor access complete media library #3054
    Vladimir
    Keymaster

    Hi Marc,

    It’s possible to change this default behaviour via filter ure_attachments_show_full_list.

    in reply to: User role to only allow editing of specific pages #3050
    Vladimir
    Keymaster

    Information is available at ‘Content edit restrictions features’ section at home and documentation pages. Read this page.
    Ask if something will be not clear after reading.

    Vladimir
    Keymaster

    Hi,

    Give me more details, what is wrong with admin menu? Screenshots are very appreciated. I may look on your settings on-line if you send admin credentials to support [at-sign] role-editor.com

    ‘Allow’ is a default action at the user level. It works together with restriction set for this user at the role level, but if you selected the same action ‘Allow’ for role. Plugin should use both restrictions data (from the user level and the role level) simultaneously. When you select ‘look at roles’, plugin ignores restrictions selected at a user level.
    When you select different actions at user and role levels, user level has a priority.

    in reply to: Trouble Seeing Appearance>Widgets #3046
    Vladimir
    Keymaster

    Hi Lori,

    Does user with this role see a full “Appearance” menu if you deactivate “Admin menu access” add-on?
    Show the screenshot of restrictions you made for this role with “Admin menu”.

    Vladimir
    Keymaster

    Hi,

    [user_role_editor] shortcode do not work for ‘administrator’ role by design. The are no any restrictions for administrator.

    Vladimir
    Keymaster

    Hi,

    Thanks for this notification. I wrote at the end of the documentation page:

    This add-on could be not fully compatible with some other plugins or themes which also replace WordPress core Walker_Nav_Menu_Edit class from wp-admin/includes/class-walker-nav-menu-edit.php file. Read this discussion for more details.

    I see that it’s your case. Devis theme uses its own menu walker which replaces as WordPress’s as URE’s one.

    in reply to: Role access based on page template #3038
    Vladimir
    Keymaster

    I like the idea with page template as the access criteria. Thanks.
    I will realize it.

    in reply to: License Key Won't Update #3035
    Vladimir
    Keymaster

    Thanks for staying with User Role Editor Pro. Your license key is still the same.

    URE Pro update server caches responses for the clients requests for 12 hours. It’s a reason why you still saw “Expired” after upgrading your account to Pro Personal Lifetime.

    Take the license key from your account page and try again today. My test showed that your license is active.

    “License key” field does not take empty values. You may input any not empty value (like 111) to stop use a valid license key on the site.

    in reply to: Gravity Forms User Registration #2998
    Vladimir
    Keymaster

    Hi Brian,

    I made an assumption that user select a secondary role from the business type radio list. So I added role IDs as the option values for its options: hospice, hospital, surgury_center.
    You have to create roles with the same IDs. This interface element is available as the $entry[11] at the GF ‘gform_user_registered’ filter. So PHP code will be:

    add_action( 'gform_user_registered', 'frontend_register_add_2nd_user_role', 10, 4);
    
    function frontend_register_add_2nd_user_role($user_id, $user_config, $entry, $user_pass) {
    
        global $wp_roles;
        
        $user = new WP_User($user_id);
        
        $role = $entry[11];
        
        // secondary role
        if (empty($role)) {
            return;
        }
        
        if (!isset($wp_roles->roles[$role])) {
            return;
        }
        
        $user->add_role($role);
        
    }
    
Viewing 15 posts - 1,726 through 1,740 (of 2,491 total)