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.


Parameters

$parent_dropdown_args

Array of arguments to generate parent dropdown.<br>

  • 'taxonomy'
    (string) Name of the taxonomy to retrieve.<br>
  • 'hide_if_empty'
    (bool) True to skip generating markup if no categories are found. Default 0.<br>
  • 'name'
    (string) Value for the 'name' attribute of the select element.<br> Default "new{$tax_name}_parent".<br>
  • 'orderby'
    (string) Which column to use for ordering terms. Default 'name'.<br>
  • 'hierarchical'
    (bool|int) Whether to traverse the taxonomy hierarchy. Default 1.<br>
  • 'show_option_none'
    (string) Text to display for the "none" option.<br> Default "— {$parent} —", where $parent is 'parent_item' taxonomy label.<br>


Source

File: wp-admin/includes/meta-boxes.php

View on GitHub



Changelog

Changelog
Version Description
4.4.0 Introduced.