WordPress at Your Fingertips
filter is not described

taxonomy_parent_dropdown_args filter-hook . WP 3.7.0

Filters the taxonomy parent drop-down on the Edit Term page.


add_filter( 'taxonomy_parent_dropdown_args', 'filter_function_name_9859', 10, 3 );
function filter_function_name_9859( $dropdown_args, $taxonomy, $context ){
	// filter...

	return $dropdown_args;

An array of taxonomy parent drop-down arguments.

  • hide_empty(int|true|false)
    Whether to hide terms not attached to any posts.
    Default: 0|false

  • hide_if_empty(true|false)
    Whether to hide the drop-down if no terms exist.
    Default: false

  • taxonomy(string)
    The taxonomy slug.

  • name(string)
    Value of the name attribute to use for the drop-down select element.
    Default: 'parent'

  • orderby(string)
    The field to order by.
    Default: 'name'

  • hierarchical(true|false)
    Whether the taxonomy is hierarchical.
    Default: true

  • show_option_none(string)
    Label to display if there are no terms.
    Default: 'None'
The taxonomy slug.
Filter context. Accepts 'new' or 'edit'.


Since 3.7.0 Introduced.
Since 4.2.0 Added $context parameter.

Where the hook is called

In file: /wp-admin/edit-tags.php
wp-admin/edit-tags.php 501
$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' );
wp-admin/edit-tag-form.php 192
$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );

Where in WP core the hook is used WordPress

Usage not found.