wpseek.com
WordPress开发者和主题制作者的搜索引擎



post_edit_category_parent_dropdown_args › WordPress过滤钩子

Since4.4.0
已弃用n/a
apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args )
参数:
  • (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. }
    Required: Yes
定义在:
文档:

Filters the arguments for the taxonomy parent dropdown on the Post Edit page.





源码

$parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args );