Title: Hide Options When Creating Posts
Last modified: August 21, 2016

---

# Hide Options When Creating Posts

 *  Resolved [JosiahW](https://wordpress.org/support/users/josiahw/)
 * (@josiahw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/hide-options-when-creating-posts/)
 * I do not want my authors or contributors to see some plugin options when they
   are writing a post. For example I don’t want them to have the option of changing
   a “LoopBuddy” option that shows up in the add post.
 * How do I go about doing this? If I need to put in some code how do I know what
   to put in for each plugin?
 * [http://wordpress.org/plugins/adminimize/](http://wordpress.org/plugins/adminimize/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [JosiahW](https://wordpress.org/support/users/josiahw/)
 * (@josiahw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/hide-options-when-creating-posts/#post-4038719)
 * I figured it out.
 * #divid.whateverbox
 * Used firebug to find these.
 *  [lilandzoom](https://wordpress.org/support/users/lilandzoom/)
 * (@lilandzoom)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/hide-options-when-creating-posts/#post-4038918)
 * Hi JosiahW,
 * I have the same problem, please explain how you solved it?
    Also, I want authors
   to be able to see their posts only. How can I hide the “All | Published | Trash”
   options at the edit.php page?
 * Thanks!
 *  Thread Starter [JosiahW](https://wordpress.org/support/users/josiahw/)
 * (@josiahw)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/hide-options-when-creating-posts/#post-4038919)
 * I installed the firefox extension “Firebug”. With that turned on I used the “
   element inspection” tool to find the element I wanted to disable. Once I found
   the element I entered that into adminimize.
 * For example the element selection tool for “Featured Images” box is this:
    <div
   id=”postimagediv” class=”postbox “>
 * So with that information I would go to adminimize “Your own Post options
 * Featured Image in the “ID or class” box
    and “#postimagediv.postbox” in the “
   Option” box. (Don’t include the “” just #postimagediv.postbox)
 *  Thread Starter [JosiahW](https://wordpress.org/support/users/josiahw/)
 * (@josiahw)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/hide-options-when-creating-posts/#post-4038920)
 * Adminimize does not yet have a feature for authors to only see their posts… for
   this I suggest a plugin called “Press Permit”.
 *  [lilandzoom](https://wordpress.org/support/users/lilandzoom/)
 * (@lilandzoom)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/hide-options-when-creating-posts/#post-4038921)
 * Thank you JosiahW!
    It works great As for the second question, I figured it out.
   I added the following script to the functions.php file: function td_removeList(){
   global $current_user; if( current_user_can(‘edit_posts’) AND !current_user_can(‘
   edit_users’) ){ ?> <script type=”text/javascript”> jQuery(function(){ jQuery(“
   li.all”).remove(); jQuery(“li.publish”).remove(); jQuery(“li.trash”).remove();
   jQuery(“li.future”).remove(); jQuery(“li.pending”).remove(); jQuery(“li.draft”).
   remove(); }); </script> <?php } } add_action(‘admin_footer’, ‘td_removeList’);
   add_action(‘admin_head’, ‘td_hideMenu’, 1); function td_hideMenu() { global $
   current_user, $parent_file; if( current_user_can(‘edit_posts’) AND !current_user_can(‘
   edit_users’) ){ remove_menu_page(‘tools.php’); remove_menu_page(‘edit-comments.
   php’); remove_menu_page(‘upload.php’); remove_submenu_page(‘upload.php’, ‘media-
   new.php’); if(isset($_REQUEST[‘post_status’])) $status = $_REQUEST[‘post_status’];
   else $status = “”; if(isset($_REQUEST[‘all_posts’])) $all = $_REQUEST[‘all_posts’];
   else $all = “”; if ( $parent_file == ‘edit.php’ AND $status<>”all” AND ( $status
   <>”” OR $all<>”” ) ) { if (headers_sent()) { echo ‘<meta http-equiv=”refresh”
   content=”0;url=’.admin_url(‘edit.php’).'”>’; echo ‘<script type=”text/javascript”
   >document.location.href=”‘.admin_url(‘edit.php’).'”</script>’; } else { wp_redirect(
   admin_url(‘edit.php’)); exit(); } } //redirect }//select }
 *  [jameschai](https://wordpress.org/support/users/jameschai/)
 * (@jameschai)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/hide-options-when-creating-posts/#post-4038922)
 * How would I go about removing the WOOCommerce button from displaying on the post
   page editor?
 * I used firefox and found the following:
 * class=”mceIcon mce_woocommerce_shortcodes_button”
 * Being that their is NO DIV tag how do I exclude it?
 *  [jameschai](https://wordpress.org/support/users/jameschai/)
 * (@jameschai)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/hide-options-when-creating-posts/#post-4038923)
 * Figured it out after a few hacks
 * .mceIcon mce_woocommerce_shortcodes_button

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Hide Options When Creating Posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/adminimize_000000.svg)
 * [Adminimize](https://wordpress.org/plugins/adminimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adminimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adminimize/)
 * [Active Topics](https://wordpress.org/support/plugin/adminimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adminimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adminimize/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [jameschai](https://wordpress.org/support/users/jameschai/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/hide-options-when-creating-posts/#post-4038923)
 * Status: resolved