Custom taxonomy admin description

I don’t know of any hooks to add or filter the metabox so you can either create your own metabox to replace the custom taxonomy metabox or in this case just use JQuery .append() for example is your taxonomy is named banners and its none – hierarchical (like tags) then: $(‘.tagsdiv-banners’).append(‘<p>your short description here</p>’); and … Read more

“Automatically add new top-level pages” Default

<?php add_action( ‘wp_create_nav_menu’, ‘PREFIX_nav_menu_auto_add_by_default’ ); function PREFIX_nav_menu_auto_add_by_default( $id ) { $options = (array) get_option( ‘nav_menu_options’ ); if ( ! isset( $options[‘auto_add’] ) ) { $options[‘auto_add’] = array(); } $options[‘auto_add’][] = $id; update_option( ‘nav_menu_options’, $options ); }

How to disable Page Attributes dropdown in wp-admin

Removing support for page attributes will prevent that box from appearing… function remove_page_attribute_support() { remove_post_type_support(‘page’,’page-attributes’); } add_action( ‘init’, ‘remove_page_attribute_support’ ); … but I don’t know if you need attributes support or not. If you don’t that is the fix. If you do, you will need to remove the box as per @KrzysiekDrozdz’s answer, but to … Read more

prevent showing posts of an specific category in admin posts section

You can use the pre_get_posts action to affect any queries, both in frontend and admin. In your case you should make sure you affect only admin queries and you can even use get_current_screen to narrow it down further. Here’s an example that would modify the query only on the regular posts page: add_action (‘pre_get_posts’, ‘wpse311946_restrict_cats’); … Read more