Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHello,
All fields in the “Posts/Pages/Custom Post Types Editor Restrictions” section including “with category/taxonomy ID (comma separated)” field are designed for the digital values input only. You should input digital IDs of a categories or taxonomies as a comma separated list. You should not input categories or taxonomies as a text. I confirm such input is ignored. I may add input filter for digits and commas only with one of the future updates.
02/09/2015 at 18:15 in reply to: Behavior of "Update" vs. "Update Network", managing 'local' roles #1679Vladimir
KeymasterAbout your 2nd question
I need this plugin copy to check its code, make tests and try to help you. Send its installation package to the [email protected]
I will use it at my localhost for the testing purpose only.Vladimir
KeymasterNo problem. That’s fine that you found an answer for your question yourself.
02/09/2015 at 18:00 in reply to: Behavior of "Update" vs. "Update Network", managing 'local' roles #1677Vladimir
KeymasterHi Wolfgang,
“Apply to All Sites” checkbox is available for the network activated User Role Editor, opened under Users menu of the main blog dashboard, not via Network admin. And user should be a super admin to see this option. Look on this screenshot:
https://storage.googleapis.com/role-editor/downloads/support/ure-multisite-apply-to-all.pngAs I see “Network Update” button at your screenshot above – it was made under Network Admin, where this option is unavailable by design.
Regards,
Vladimir.01/09/2015 at 20:00 in reply to: Behavior of "Update" vs. "Update Network", managing 'local' roles #1673Vladimir
KeymasterAnswer to question 1:
If You press the ‘Update Network’ button while editing a custom role,
1) You save changes of the custom role to the main blog;
2) You overwrite all roles at all other sub-sites of your network with roles from your main blog. Of course after that you will lose all changes made to the roles at subsites.If you wish to apply to all sites a changes made to the custom role only, go to the main blog “Users”-“User Role Editor”, modify custom role there, click “Apply to All Sites” and then click “Update” button.
P.S. I will try to answer on the question 2 tomorrow.
Vladimir
KeymasterHi,
‘upload_files’ capability protects the “Media” menu and its items. “Editor” role includes it by default. Some plugin may modify this default settings. So if your editor can not access “Media Library”, try to deactivate all plugins and re-check if that helped.Vladimir
KeymasterCode below removes all metaboxes from the post editor page for all users with “editor” role. Modify it for your own needs. Revisions metabox is ‘revisionsdiv’.
add_action('add_meta_boxes', 'remove_post_metaboxes', 11);function remove_post_metaboxes() {
if (!current_user_can('editor')) {
return;
}$side_metaboxes = array('formatdiv', 'categorydiv', 'tagsdiv-post_tag', 'postimagediv');
$normal_metaboxes = array('revisionsdiv', 'postexcerpt', 'trackbacksdiv', 'postcustom', 'commentstatusdiv', 'commentsdiv', 'slugdiv', 'authordiv');foreach($side_metaboxes as $metabox) {
remove_meta_box($metabox, 'post', 'side');
}
foreach($normal_metaboxes as $metabox) {
remove_meta_box($metabox, 'post', 'normal');
}}
add_action('add_meta_boxes', 'remove_page_metaboxes', 11);
Vladimir
KeymasterHi,
This code removes all HTML tags from the post content before save it for all users with ‘author’ role:
add_filter('content_save_pre', 'nohtml_in_posts');function nohtml_in_posts($content) {
if (current_user_can('author')) {
$content = wp_filter_nohtml_kses($content);
}return $content;
}
Include it into active theme’s functions.php file.Vladimir
KeymasterHi, this plugin does not introduce its own capabilities. It uses built-in WordPress
manage_options
user capability for its menu item:
https://storage.googleapis.com/role-editor/downloads/support/si-contact-form-capability.pngYou may find user capability for any admin menu item with a help of “Admin access add-on”:
https://www.role-editor.com/block-admin-menu-items
Just open it for the Administrator role and find needed menu item in the list.Vladimir
KeymasterThanks for the information.
Could you tell me from what plugin that custom menu is, so I may directly test URE with it?As about “Block not selected” option, it works currently as straightforward as it named – blocked (as result user is redirected) all not selected URLs. So if some link is clicked from the allowed page, but that link was not selected at menu items list (it may even be not presented there) user will not get access to it.
Vladimir
KeymasterHi,
Thanks. I found an issue in URE with your help:
Other default roles (in addition to the primary role) was assigned to a new registered user for requests from the admin back-end only. Now this feature works for the requests from the front-end user registration forms too.Try next update: development version 4.19.1.b2. It should work as expected now.
Vladimir
KeymasterIn order to edit published page, user should have ‘edit_published_pages’ capability. I added it directly to the user. checkman-test may edit allowed page now.
Vladimir
KeymasterHi,
OK. Thanks for letting me know, that you find an answer yourself.
Vladimir
KeymasterIs it possible to look on that data online? Send admin credentials to the [email protected]
Vladimir
KeymasterIf that post is from other author, then user should have ‘edit_others_posts’ capability to get permission to edit it.
-
AuthorPosts