apply_filters( 'taxonomy_parent_dropdown_args', array $dropdown_args , string $taxonomy , string $context )
Filters the taxonomy parent drop-down on the Edit Term page.
Parameters
- $dropdown_args
-
An array of taxonomy parent drop-down arguments.<br>
- 'hide_empty'
(int|bool) Whether to hide terms not attached to any posts. Default 0.<br> - 'hide_if_empty'
(bool) Whether to hide the drop-down if no terms exist. Default false.<br> - 'taxonomy'
(string) The taxonomy slug.<br> - 'name'
(string) Value of the name attribute to use for the drop-down select element.<br> Default 'parent'.<br> - 'orderby'
(string) The field to order by. Default 'name'.<br> - 'hierarchical'
(bool) Whether the taxonomy is hierarchical. Default true.<br> - 'show_option_none'
(string) Label to display if there are no terms. Default 'None'.<br>
- 'hide_empty'
- $taxonomy
-
The taxonomy slug.
- $context
-
Filter context. Accepts 'new' or 'edit'.
Source
File: wp-admin/edit-tags.php
Changelog
Version | Description |
---|---|
4.2.0 | Added $context parameter. |
3.7.0 | Introduced. |