Summery Summery

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

Syntax Syntax

apply_filters( 'taxonomy_parent_dropdown_args', array $dropdown_args, string $taxonomy, string $context )

Parameters Parameters


An array of taxonomy parent drop-down arguments.

  • 'hide_empty'
    (int|bool) Whether to hide terms not attached to any posts. Default 0|false.
  • 'hide_if_empty'
    (bool) Whether to hide the drop-down if no terms exist. Default false.
  • 'taxonomy'
    (string) The taxonomy slug.
  • 'name'
    (string) Value of the name attribute to use for the drop-down select element. Default 'parent'.
  • 'orderby'
    (string) The field to order by. Default 'name'.
  • 'hierarchical'
    (bool) Whether the taxonomy is hierarchical. Default true.
  • 'show_option_none'
    (string) Label to display if there are no terms. Default 'None'.


The taxonomy slug.


Filter context. Accepts 'new' or 'edit'.

Source Source

File: wp-admin/edit-tags.php


Changelog Changelog

Version Description
4.2.0 Added $context parameter.
3.7.0 Introduced.


Leave a Reply