Disable sticky option for specific categories
I ended up going with another approach. I check to see what the current user’s role is, then if the role is ‘author’, enqueued a CSS file to hide the sticky option’s checkbox. In the theme’s functions.php file: function hide_sticky_option($hook) { global $current_user; if(‘post.php’== $hook || ‘post-new.php’==$hook){ $role = array_shift($current_user->roles); //get role of current user … Read more