How to hide certain categories in wordpress dashboard?
Got an answer in the first version of this answer: /* * Hide Specified Categories (by ID) from Editors */ add_action( ‘admin_init’, ‘wpse_55202_do_terms_exclusion’ ); function wpse_55202_do_terms_exclusion() { if( current_user_can(‘editor’) ) add_filter( ‘list_terms_exclusions’, ‘wpse_55202_list_terms_exclusions’, 10, 2 ); } function wpse_55202_list_terms_exclusions($exclusions,$args) { return $exclusions . ” AND ( t.term_id <> 1 ) AND ( t.term_id <> 17 … Read more