post_edit_category_parent_dropdown_args

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

Description

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

Parameters (1)

0. $parent_dropdown_args — Optional. (array)
_parent.. terms. Default name . hierarchy. Default 1. Default — —, where $parent is parent_item taxonomy label. }

Usage

To run the hook, copy the example below.
  1. $parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args ); 
  2.  
  3. if ( !empty( $parent_dropdown_args ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the post_edit_category_parent_dropdown_args callback 
  2. function filter_post_edit_category_parent_dropdown_args( $parent_dropdown_args ) { 
  3. // make filter magic happen here... 
  4. return $parent_dropdown_args
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'post_edit_category_parent_dropdown_args', 'filter_post_edit_category_parent_dropdown_args', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'post_edit_category_parent_dropdown_args', 'filter_post_edit_category_parent_dropdown_args', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-admin/includes/meta-boxes.php  
  1. $parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args );