WordPress at a glance
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.

Usage

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

	return $dropdown_args;
}
$dropdown_args(array)

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'
$taxonomy(string)
The taxonomy slug.
$context(string)
Filter context. Accepts 'new' or 'edit'.

Notes

  • Since 4.2.0 Added $context parameter.

Where the hook is called

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

Where the hook is used (in WP core)

Does not used.