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.
- $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, $edit );
- if ( !empty( $dropdown_args ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the taxonomy_parent_dropdown_args callback
- function filter_taxonomy_parent_dropdown_args( $dropdown_args, $taxonomy, $edit ) {
- // make filter magic happen here...
- return $dropdown_args;
- };
- // add the filter
- add_filter( 'taxonomy_parent_dropdown_args', 'filter_taxonomy_parent_dropdown_args', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );
- /wp-admin/edit-tags.php
- $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' );