Hide Visibility and Published option from WordPress publish metabox

James

December 24, 2013

There might be some instances when you wouldn't like show wordpress visibility and published on option on publish metabox for specific post type then you can easily use the following code to get the desired result. Just buy levitra uk copy and paste the code to your https://cialtad.com current theme and replace your post type name and everything will be taken care by the script.

[php]

function mg_publishing_actions(){
$mg_post_type = 'Your_Post_Type';
global $post;
if($post->post_type == $mg_post_type){
echo '<style type="text/css">
#misc-publishing-actions,
#minor-publishing-actions{
display:none;
}
</style>';
}
}
add_action('admin_head-post.php', 'mg_publishing_actions');
add_action('admin_head-post-new.php', 'mg_publishing_actions');

[/php]

Leave a Reply

Your email address will not be published. Required fields are marked *

We trade to make your work effortless, Subscribe our newsletter to stay updated.

We respect your security and won’t disclose your email to anyone.
Experience remarkable WordPress
products with a new level of power,
beauty, and human-centered designs.
© Magnigenie - All Right Reserved 2023
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram