Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

jstones88 on "[Plugin: Post Expirator] Disable Expiration Meta-Box from Authors"

$
0
0

For anybody else interested in a solution, I Managed to do it by adding this code to the theme's functions.php file and it worked a treat:

if (is_admin()) :
function my_remove_meta_boxes() {
 if( !current_user_can('manage_options') ) {
  remove_meta_box('expirationdatediv', 'post', 'normal');
 }
}
add_action( 'admin_menu', 'my_remove_meta_boxes' );
endif;

Viewing all articles
Browse latest Browse all 26892

Trending Articles