Hi Dario,
You can add following code in the functions.php file of your active theme:
/**
* Remove meta options for non-admin users
*/
function my_remove_meta_boxes() {
if ( ! current_user_can( 'manage_options' ) ) {
$post_types = get_post_types( array( 'public' => true ), 'names', 'and' );
$post_types = array_unique( array_merge( $post_types, array( 'post', 'page' ) ) );
foreach($post_types as $type){
remove_meta_box( 'the_champ_meta', $type, 'advanced' );
}
}
}
add_action( 'admin_init', 'my_remove_meta_boxes' );
We will include this in the upcoming release of the plugin.
@heateor Thanks For Reply and Solution.
It work! In the next release add this code but add checkbox for ability or no it too.
Thanks a lot again.
Your are greats!
No problem. If you could leave a review https://wordpress.org/support/plugin/super-socializer/reviews/, would be much appreciated 🙂
I leave a review.Thanks again for all. Great!