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



taxonomy_parent_dropdown_args › WordPress过滤钩子

Since4.2.0
已弃用n/a
apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' )
参数: (3)
  • (array) $dropdown_args { An array of taxonomy parent drop-down arguments. @type int|bool $hide_empty Whether to hide terms not attached to any posts. Default 0. @type bool $hide_if_empty Whether to hide the drop-down if no terms exist. Default false. @type string $taxonomy The taxonomy slug. @type string $name Value of the name attribute to use for the drop-down select element. Default 'parent'. @type string $orderby The field to order by. Default 'name'. @type bool $hierarchical Whether the taxonomy is hierarchical. Default true. @type string $show_option_none Label to display if there are no terms. Default 'None'. }
    Required: Yes
  • (string) $taxonomy The taxonomy slug.
    Required: Yes
  • (string) $context Filter context. Accepts 'new' or 'edit'.
    Required: Yes
定义在:
文档:

Filters the taxonomy parent drop-down on the Edit Term page.





源码

$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' );