taxonomy_parent_dropdown_args

This filter is documented in wp-admin/edit-tags.php.

Description

apply_filters( 'taxonomy_parent_dropdown_args', (unknown) $dropdown_args, (unknown) $taxonomy, (string) $edit ); 

Parameters (3)

0. $dropdown_args (unknown)
The dropdown args.
1. $taxonomy (unknown)
The taxonomy.
2. $edit (string) => 'edit'
The edit.

Usage

To run the hook, copy the example below.
  1. $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, $edit ); 
  2.  
  3. if ( !empty( $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 taxonomy_parent_dropdown_args callback 
  2. function filter_taxonomy_parent_dropdown_args( $dropdown_args, $taxonomy, $edit ) { 
  3. // make filter magic happen here... 
  4. return $dropdown_args
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'taxonomy_parent_dropdown_args', 'filter_taxonomy_parent_dropdown_args', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'taxonomy_parent_dropdown_args', 'filter_taxonomy_parent_dropdown_args', 10, 3 ); 

Defined (2)

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

/wp-admin/edit-tag-form.php  
  1. $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' ); 
/wp-admin/edit-tags.php  
  1. $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' );