WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The scenario is this:

An agent enters the post data (custom post), but can only do a pending for review or change the visibility of the post. He cannot change the post status manually.

I have achived the pending for review, but I cannot hide the "Status: published/pending etc. Edit". How is it possible (if possible)?

share|improve this question
up vote 0 down vote accepted

Add this code where it's should be (plugin/functions.php/mu-plugin) - simple "hide" method using css.

add_action('admin_print_styles-post.php',     'hide_publishing_block_using_css');
add_action('admin_print_styles-post-new.php', 'hide_publishing_block_using_css');
function hide_publishing_block_using_css(){
    echo '<style>#misc-publishing-actions{display:none;}</style>';
share|improve this answer
Thanks. Actually though, I need the visibility part, but it seems that I'd have to change the javascript also because each time you press the cancel from visibility it reenables the Status bit. – Panagiotis Nov 19 '12 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.