Within your functions.php:
function custom_admin_scripts( $hook ) {
if ( $hook == 'post.php' && get_post_type() == 'your_custom_post_type_key' ) {
wp_enqueue_style( 'your_custom_post_type_key', get_stylesheet_directory_uri() . '/my_css_file.css', array(), false, 'all' );
}
}
add_action( 'admin_enqueue_scripts', 'custom_admin_scripts' );
Change your_custom_post_type_key
to your custom post type key
Change /my_css_file.css
to your real path towards your css file.
Within your css file:
#{your_custom_taxonomy_key}-adder {
display: none !important;
}
Change {your_custom_taxonomy_key}
to your custom taxonomy key.
That CSS selector will hide, as aksed, the whole adder section.
This should do it.
Related Posts:
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- Get the the top-level parent of a custom taxonomy term
- Custom taxonomy, get_the_terms, listing in order of parent > child
- Determine Term depth
- How to enable hierarchical permalinks for hierarchical taxonomies
- Get taxonomy name of current post
- Determine if Term has Grandparent/Great-Grandparent
- Custom Taxonomy Relationship (ex: plant classification)
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- How to fix a double slash in custom permalinks with hierarchical taxonomy’s?
- How to include parent terms in hierarchical taxonomy URLs?
- How to set hierarchical terms to a post using wp_set_object_terms
- Help building array hierarchically with taxonomies (to get posts)
- Hierarchical display of custom taxonomy
- How to get parents of custom taxonomy, as what get_category_parents() do?
- Populating dropdown menu with hierarchical taxonomies
- Taxonomies: display hierarchical parent list
- Display hierarchical subterms of custom taxonomy based on depth
- Redirect all child taxonomy to its parent
- How do I display a list of posts under all hierarchical children of the current taxonomy?
- Register a pre defined tree of taxonomies
- Hierarchical Taxonomy Terms Select Menu Output with selected=”selected” Set
- Custom Taxonomies not retaining hierarchy while importing from one site to another
- Rewrite rules for varying nested terms of custom taxonomy
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- Using custom taxonomies to display hierarchical URLs?
- how to store values in database at hierarchical view
- tax_query: Don’t show posts with parent term when they have a corresponding child term applied
- Display a specific hierarchical level of a specific custom taxonomy
- SEO Title Tag and Meta Description for custom taxonomy
- Need help understanding a rewrite with multi-level taxonomy
- Taxonomy term breadcrumb; how?
- Determine if Term has Grandparent/Great-Grandparent
- Getting grandchildren of a post with a specified custom taxonomy?
- List child terms and posts in the current term
- Display Parent and child taxonomies in seperate drop downs [duplicate]
- More than one Hierarchical Taxonomy and SEO
- Remove taxonomy base or term from url
- Bulk term assignment for attachment taxonomies
- Why is my working Custom Taxonomy not in get_taxonomies array?
- Create taxonomy with meta term using the WP Rest Api
- Use custom posts as taxonomy term meta replacement?
- Remove description in custom taxonomy edit screen
- Taxonomies not appearing in columns on dashboard
- Make Custom Taxonomy Category Use Parent Template
- How to call custom taxonomy categories with shortcodes
- How to get terms of a custom post type in a loop inside footer.php
- How do I make a custom taxomony appear like tags?
- Refine user taxonomy query based on role
- Get ID and slug from taxonomy object
- List the number of posts for each custom taxonomy and specific custom field value
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- showing custom taxonomies w/custom post type
- Display sub categories and their data of a taxonomy
- Exclude Taxonomy Terms from Template Via Back End?
- How to overwrite registered taxonomy url from vendor plugin in child theme
- Dynamic loading of Archive content based on custom taxonomy term name
- Checking return with WP Error
- Why is the custom taxonomy archive page redirecting me to a single post? [closed]
- Set taxonomy fields on post with AJAX
- Different single page templates for taxonomies
- Can I use OR relation for one item when calling tax_query from WP_Query and use AND for the rest?
- I don’t need ‘view’ page for my custom taxonomy
- WordPress implode & wp_insert_post question
- Use the same taxonomy twice on the same post type?
- How to write sql query to get the posts from a custom taxonomy term name
- How to do a particular wp_query taxonomy search
- Build filter for post-type + multi taxonomies + multi terms
- custom hierarchical taxonomy and custom post type list contains surplus posts
- get_term_by works but get_terms doesn’t?
- How can i add custom field inside custom post taxonomy?
- How to output taxonomy term (incl. link to archive) on author.php?
- Featured Images for Tags?
- Taxonomize taxonomy terms?
- displaying posts from a custom post type tags
- Showing relevant categories on custom taxonomy template
- Custom taxonomy terms hierarchical navigation
- Conditional if is single and part of the custom taxonomy
- how to show product custom taxonomies in woocommerce rest api
- Auto add custom taxonomy to permalink when save
- WP Tax query & order by tax query not working
- Show latest used taxonomy in homepage
- Link a page from admin to a custom taxonomy
- What’s the url queryvar for a taxnomy archive?
- set_object_terms for custom taxonomy in custom post type – not working
- Permalink Rewrite to include Custom Taxonomy Term
- Where is defined a custom register_taxonomy? [closed]
- Differentiate Parent & Child of Custom Taxonomy
- Listing all selected terms for custom taxonomies on a post
- Multiple Taxonomy in URL/Query – No Custom Post Type
- Calling Custom Taxonomy Dropdown in Form
- Show different sidebar on taxonomy pages when a default is set
- Taxonomy Extra Meta [duplicate]
- How can I get parent term from a child term
- Custom Taxonomy – Archive for the whole Custom Taxonomy (and not just single term)?
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- ACF Display Taxonomy Image Field
- Guest author – URL, base and custom taxonomy – working but unstable
- Two taxonomies with the same slug
- Hook function when taxonomy terms change