Disable sticky posts function
-
Is it possible to disable the sticky posts function and/or hide it from appearing on the admin pages? My theme does not support the feature but the volunteer editors keep trying to use it for all their posts.
This code removes it from the Quick Edit page, but not the main Add New Post page in the right hand column.
// Hide sticky posts add_action( 'admin_print_styles', 'hide_sticky_option' ); function hide_sticky_option() { global $post_type, $pagenow; if( 'post.php' != $pagenow && 'post-new.php' != $pagenow && 'edit.php' != $pagenow ) return; ?> <style type="text/css">#sticky-span { display:none!important } .quick-edit-row .inline-edit-col-right div.inline-edit-col > :last-child > label.alignleft:last-child{ display:none!important; }</style> <?php }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Disable sticky posts function’ is closed to new replies.