|
Under the “Post Types” tab of Access Control, I don’t see any checkbox options
Started by: derekN-2
in: Toolset Professional Support
Quick solution available
Problem: I am unable to use the Access Control screen to set permissions for my custom post types.
Solution: Temporarily disable Progress Maps plugin to eliminate the compatibility issue, then reactivate Progress Maps once you're set up.
|
|
2 |
3 |
7 years ago
derekN-2
|
|
Removing buttons for certain user roles for the post editor
Started by: andrewR-7
in: Toolset Professional Support
Quick solution available
Problem:
Remove buttons (fields and views, Content Layout Editor, CRED form, Access, Bootstrap buttons) from backend editor for certain user roles.
Solution:
1. Add this code in your theme’s or child theme’s functions.php file:
add_filter( 'mce_buttons_3', 'remove_bootstrap_buttons', 999 );
function remove_bootstrap_buttons($buttons) {
if( current_user_can('editor') || current_user_can('contributor') ) {
return array();
}
else {
return $buttons;
}
}
add_filter( 'mce_buttons', 'remove_toggle_button', 999 );
function remove_toggle_button($buttons) {
if( current_user_can('editor') || current_user_can('contributor') ) {
$remove = array( 'css_components_toolbar_toggle' );
return array_diff( $buttons, $remove );
}
else {
return $buttons;
}
}
function vm_wptypes_remove() {
if( current_user_can('editor') || current_user_can('contributor') ) {
wp_enqueue_style( 'wp-types-special', get_stylesheet_directory_uri() . '/wp-types-special.css' );
}
}
add_action( 'admin_init', 'vm_wptypes_remove' );
==> In above code, I have used 'editor' and 'contributor' level roles as example, you can replace those with your roles as needed. These are in the if conditional statement.
2. Download & extract this file >> and place this css file in the folder in your site:
wp-content/themes/et/ (inside your theme folder)
CSS file:
https://drive.google.com/file/d/0B5EmJQ1qcuyqTU4xZ3paM01ERmc/view?usp=sharing
Relevant Documentation:
Related ticket: https://toolset.com/forums/topic/how-to-remove-fields-and-views-button-above-post-edit-for-non-admin-users/
|
|
2 |
8 |
7 years, 2 months ago
andrewR-7
|
|
Access Roles and Custom Field permission , NOT GROUP
Started by: Akhil
in: Toolset Professional Support
Quick solution available
Problem: I would like to use Access to rename the default WordPress roles, and I would like to use Access to restrict individual custom fields based on user role.
Solution:
Access is not designed to rename the default WP roles. This will require custom code that doesn't relate to Toolset, which therefore falls outside the scope of our support forums. A quick search led me to this post, which shows you how to display different names for each role (but not modify the slug):
https://premium.wpmudev.org/blog/change-wordpress-role-names/
Custom field permissions are managed at the Field Group level, so it's not possible to manage individual fields. There is also Types Custom field conditional display, but it is currently limited to conditions based on custom fields and not User role. My advice is to split these fields up into separate groups, which you can restrict based on User role with Access.
Relevant Documentation:
https://toolset.com/documentation/user-guides/access-control-for-user-fields/
|
|
2 |
3 |
7 years, 2 months ago
Akhil
|
|
How to add in Access new role that allow editors to edit WP menu?
Started by: zbyszekZ
in: Types Community Support
Quick solution available
|
|
2 |
10 |
7 years, 2 months ago
zbyszekZ
|