I figured it out.
#divid.whateverbox
Used firebug to find these.
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!
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)
Adminimize does not yet have a feature for authors to only see their posts… for this I suggest a plugin called “Press Permit”.
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
}
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?
Figured it out after a few hacks
.mceIcon mce_woocommerce_shortcodes_button