Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterExcellent!
The most probable problem with a separate file media.php was that it should be started from<?php
characters at the separate 1st line.
Vladimir
KeymasterIt’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
KeymasterThanks 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.
Vladimir
KeymasterHi Marc,
It’s possible to change this default behaviour via filter ure_attachments_show_full_list.
Vladimir
KeymasterInformation 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
KeymasterHi,
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.Vladimir
KeymasterHi 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
KeymasterHi,
[user_role_editor] shortcode do not work for ‘administrator’ role by design. The are no any restrictions for administrator.
Vladimir
KeymasterHi,
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.
Vladimir
KeymasterI like the idea with page template as the access criteria. Thanks.
I will realize it.Vladimir
KeymasterThanks 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.
Vladimir
KeymasterHi 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); }
Vladimir
KeymasterHi Brian,
Thanks for this checking. I just found your message at the Gmail SPAM box. I will work on the subject. Excuse me for this delay with response.
Vladimir
KeymasterWhat version of User Role Editor Pro do you use?
Show screenshots with settings you made at “Admin menu” or let me check on-line. Send admin login credentials to support [at-sign] role-editor.com in the 2nd case.Vladimir
KeymasterDo you use the latest version of URE Pro 4.29.1? Version 4.29 did not apply admin menu access restrictions to a user with ‘delete_users’ capability, as WordPress core is_super_admin() function returns TRUE for such user.
I use ‘administrator’ role to look what capability protects a needed menu item, as ‘administrator’ has a full access to the menu.
In order to see ‘Administrator’ role at the list of roles at ‘User Role Editor’ you need to turn ON the ‘Show Administrator role at User Role Editor’ option at “Settings->User Role Editor->General” tab.
-
AuthorPosts