Filter hook 'post_edit_category_parent_dropdown_args'
in WP Core File wp-admin/includes/meta-boxes.php at line 724
Description
Filters the arguments for the taxonomy parent dropdown on the Post Edit page. categories are found. Default 0. of the select element. Default "new{$tax_name}_parent". terms. Default 'name'. hierarchy. Default 1. Default "— {$parent} —", where `$parent` is 'parent_item' taxonomy label. }
Occurrences
Filename |
Line Number |
wp-admin/includes/meta-boxes.php |
724 |
Parameters
Type |
Name |
Description |
array |
$parent_dropdown_args |
{ Optional. Array of arguments to generate parent dropdown. |
PHP Doc
/**
* Filters the arguments for the taxonomy parent dropdown on the Post Edit page.
*
* @since 4.4.0
*
* @param array $parent_dropdown_args {
* Optional. Array of arguments to generate parent dropdown.
*
* @type string $taxonomy Name of the taxonomy to retrieve.
* @type bool $hide_if_empty True to skip generating markup if no
* categories are found. Default 0.
* @type string $name Value for the 'name' attribute
* of the select element.
* Default "new{$tax_name}_parent".
* @type string $orderby Which column to use for ordering
* terms. Default 'name'.
* @type bool|int $hierarchical Whether to traverse the taxonomy
* hierarchy. Default 1.
* @type string $show_option_none Text to display for the "none" option.
* Default "— {$parent} —",
* where `$parent` is 'parent_item'
* taxonomy label.
* }
*/