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
$parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args );
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.