WordPress filter hook · part of WordPress core
taxonomy_parent_dropdown_args
A WordPress core filter that 6 plugins also fire themselves, running on 87K+ sites between them.
“Filters the taxonomy parent drop-down on the Edit Term page.”
How to use taxonomy_parent_dropdown_args
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'taxonomy_parent_dropdown_args', function( $dropdown_args, $taxonomy, $arg3 ) {
// Change $dropdown_args here.
return $dropdown_args;
}, 10, 3 );Argument names come from Customer Reviews for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
6 plugins that fire taxonomy_parent_dropdown_args
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Customer Reviews for WooCommerce80,000+ installs
apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' )includes/tags/cr-tags-page.php:483 -
WPJAM Basic4,000+ installs
apply_filters( 'taxonomy_parent_dropdown_args', ['exclude_tree'=>$id], $this->name, 'edit' )includes/class-wpjam-core.php:392 -
Premmerce Product Filter for WooCommerce2,000+ installs
apply_filters( 'taxonomy_parent_dropdown_args', $categoriesDropDownArgs, 'product_cat', 'new' )src/Admin/Tabs/SeoRules.php:194 -
Bulk Post Category Creator900+ installs
apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, 'category', 'new' )bulk-category-creator-wordpress.php:296 -
Bulk WooCommerce Category Creator400+ installs
apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, 'product_cat', 'new' )bulk-wc-category-creator.php:475 -
Fakturo10+ installs
apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' )includes/libs/fktr_popup_taxonomy.php:221
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.