Forum Replies Created
-
AuthorPosts
-
Vladimir
Keymaster“User Registration” plugin shows extra fields at back-end user profile only to a user with ‘manage_options’ capability:
public function show_user_extra_fields( $user ) { if ( ! current_user_can( 'manage_options' ) ) { return; } $show_fields = $this->get_user_meta_by_form_fields( $user->ID ); ...
Vladimir
KeymasterHi,
WordPress by default uses the same ‘edit_pages’ capability for both “edit” and “add new” buttons. In order to change this go to “Settings->User Role Editor->Additional Modules” tab and turn on the “Activate “Create” capability for posts/pages/custom post types” option. URE will reconfigure WordPress to use ‘create_pages’ for ‘add new’ button as a result.
Take into account that URE automatically grants ‘create_posts’ and ‘create_pages’ capabilities to the ‘administrator’ role only. You may need to re-check your roles (contributor, author, editor and others) to ensure users don’t lose ‘add new’ functionality where they should have it.
Vladimir
KeymasterHi,
May be this code will give a starting point:
if (is_multisite()) { add_action( 'wpmu_activate_user', 'add_secondary_role', 10, 1 ); } else { add_action( 'user_register', 'add_secondary_role', 10, 1 ); } function add_secondary_role( $user_id ) { $user = get_user_by('id', $user_id); $user->add_role('custom_role_id'); }
I will be out of office until July 31st.
Vladimir
KeymasterGot it. Thanks.
I will proceed with subject investigation from July 31st, when return from a small journey.21/07/2019 at 13:38 in reply to: Restrict posts only on the taxonomy of the term ID set in the post-edit dialog #5830Vladimir
KeymasterYes, URE works with edit restrictions by term ID exactly this way, as you described.
Thank you for the suggestion. I will take it into account with one of the future updates.
Vladimir
KeymasterSure, URE does not restrict access to content for users with ‘administrator’ role, thus, it does not show “Posts/pages edit restrictions” section at such user profile.
If you need apply edit restrictions for such power user, grant him custom role with less permissions.
20/07/2019 at 01:20 in reply to: Restrict edit access to certain posts, but not that posts children. #5826Vladimir
KeymasterHi,
Thanks for the good feedback.
You can use the ure_auto_access_child_pages custom filter to exclude automatic adding off child pages to the list of restricted pages.Vladimir
Keymaster“Page/Post Editor Restrictions” is shown at user profile only for user who really can edit posts and/or pages. Thus,
1st, provide for a user edit access to the pages which you plan to allow him to edit.
2nd, add edit restriction criteria.Vladimir
KeymasterDid you block any post meta boxes for this role? If Yes, try to remove blocking and make another test. If that will help you can play with meta boxes one by one to isolate which meta box blocking causes this JS error.
Vladimir
KeymasterMy test showed that user with custom role, which includes just ‘edit_posts’, ‘publish_posts’, ‘edit_published_posts’ sees and can use “Use the Divi Builder” button at the back-end post editor page.
Divi builder uses JavaScript intensively. I suppose that some JavaScript error may take place in the post editor page. Look at the browser JavaScript console for the critical red colored error messages.
Vladimir
KeymasterIt seems that Woffice has updated user interface for bbPress with extended functinality. Can get access to its copy for testing? If Yes, share it via DropBox or similar with support [at-sign] role-editor.com
Vladimir
KeymasterUpload a .zip to DropBox, Google Drive or similar service and send the link to support [at-sign] role-editor.com
Vladimir
KeymasterRe-check if needed option is enabled for a role inside Divi’s internal Role Editor.
If it will not help, can you share the latest version of Divi?
Vladimir
KeymasterForum deletion is available via back-end only by default. Forums menu is available at wp-admin to user with ‘bbp_forums_admin’ capability.
Thus I’m wonder how it’s possible for your participant to create and delete forums. Does your theme add additional controls at front-end related to forum management?
-
AuthorPosts