Archived topic
Disable elements dissapeared
6 replies · Started by Elio Martinez on March 20, 2017
Hi,
We have updated to the last version And THE option to "Disable elements" has disapeared for al THE users except Administrators and We need THE option back.
What can we do? We have User Role Editor actívate.
All meta boxes are behind a capability for security purposes.
You can filter the allowed capability with this filter: https://docs.generatepress.com/article/generate_metabox_capability/
Let me know if you need more info :)
Hi Tom,
As I told this option was working until this afternoon that I updated the plugin and theme.
I use User Role Editor and I have activated "activate plugin" but the other editors are still unable to activate the Disable Elements option. I dont know anything about php so I dont know what I have to do to get this option back again for all editors.
Try this:
add_filter( 'generate_metabox_capability','tu_change_metabox_cap' );
function tu_change_metabox_cap() {
return 'edit_pages';
}
Adding PHP: https://docs.generatepress.com/article/adding-php/
Hi Tom,
I had the same problem, after adding php to the function.php of my child-theme everything works fine now.
Thank you.
Bettina
Glad to hear it worked :)
This worked for me. Thanks