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_9554', 10, 3 );
function filter_function_name_9554( $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'.

Список изменений

С версии 3.7.0 Введена.
С версии 4.2.0 Added $context parameter.

Где вызывается хук

В файле: /wp-admin/edit-tags.php
taxonomy_parent_dropdown_args
wp-admin/edit-tags.php 486
$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' );
wp-admin/edit-tag-form.php 177
$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );

Где используется хук в ядре WordPress

Использование не найдено.