Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.