post_edit_category_parent_dropdown_args
最后更新于:2021-11-27 16:29:20
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.
参数
- $parent_dropdown_args
-
(array)
Array of arguments to generate parent dropdown.-
‘taxonomy’
(string) Name of the taxonomy to retrieve. -
‘hide_if_empty’
(bool) True to skip generating markup if no categories are found. Default 0. -
‘name’
(string) Value for the ‘name’ attribute of the select element. Default “new{$tax_name}_parent”. -
‘orderby’
(string) Which column to use for ordering terms. Default ‘name’. -
‘hierarchical’
(bool|int) Whether to traverse the taxonomy hierarchy. Default 1. -
‘show_option_none’
(string) Text to display for the “none” option. Default “— {$parent} —”, where$parent
is ‘parent_item’ taxonomy label.
-
‘taxonomy’
源文件
文件: gc-admin/includes/meta-boxes.php