On this page
apply_filters( 'post_edit_category_parent_dropdown_args', array $parent_dropdown_args )
Filters the arguments for the taxonomy parent dropdown on the Post Edit page.
Parameters
$parent_dropdown_argsarray-
Array of arguments to generate parent dropdown.
taxonomystringName of the taxonomy to retrieve.hide_if_emptyboolTrue to skip generating markup if no categories are found. Default 0.namestringValue for the'name'attribute of the select element.
Default "new{$tax_name}_parent".orderbystringWhich column to use for ordering terms. Default'name'.hierarchicalbool|intWhether to traverse the taxonomy hierarchy. Default 1.show_option_nonestringText to display for the "none" option.
Default "— {$parent} —", where$parentis'parent_item'taxonomy label.
Source
File: wp-admin/includes/meta-boxes.php. View all references
$parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args );
Related
Used By
| Used By | Description |
|---|---|
| post_categories_meta_box() wp-admin/includes/meta-boxes.php | Displays post categories form fields. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_edit_category_parent_dropdown_args