Disable meta boxes for specific users
-
Hello there π
I need to customize the display of the 3 meta boxes in the page and post. I have some level of users and I don’t want them to modify the AMP possibilities, I must restrict the content of the AMP functions for some kind of users (admin and editor).
I removed one of the 3 metaboxes (pagebilder_content) but I can’t do the same for the custom_content_editor and ampforwp_title_meta boxes.
add_filter('add_meta_boxes', 'tipi_remove_meta_boxes'); function tipi_remove_meta_boxes() { if ( ! current_user_can( 'update_core' ) ) { remove_meta_box( 'pagebilder_content', 'post', 'normal' ); } }How to do it please? It’s uncomfortable for a website admin to let its users take the control to some features such as AMP elements. Thanks for the help π
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Disable meta boxes for specific users’ is closed to new replies.