Forum Replies Created
-
AuthorPosts
-
VladimirKeymaster
Right. User should have the basic permissions. ‘edit restrictions’ just narrow them according to your input.
VladimirKeymasterIs this user the author of the page id 1265? ‘edit_others_pages’ capability is required in other case.
VladimirKeymasterWhat 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?VladimirKeymasterExcellent!
The most probable problem with a separate file media.php was that it should be started from<?php
characters at the separate 1st line.
VladimirKeymasterIt’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.VladimirKeymasterThanks 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.
VladimirKeymasterHi Marc,
It’s possible to change this default behaviour via filter ure_attachments_show_full_list.
VladimirKeymasterInformation 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.VladimirKeymasterHi,
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.VladimirKeymasterHi 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”.VladimirKeymasterHi,
[user_role_editor] shortcode do not work for ‘administrator’ role by design. The are no any restrictions for administrator.
VladimirKeymasterHi,
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.
VladimirKeymasterI like the idea with page template as the access criteria. Thanks.
I will realize it.VladimirKeymasterThanks 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.
VladimirKeymasterHi 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); }
-
AuthorPosts