quick_edit_show_taxonomy

Filters whether the current taxonomy should be shown in the Quick Edit panel.

Description

apply_filters( 'quick_edit_show_taxonomy', (bool) $show_in_quick_edit, (string) $taxonomy_name, (string) $screen_post_type ); 

Parameters (3)

0. $show_in_quick_edit (bool)
Whether to show the current taxonomy in Quick Edit.
1. $taxonomy_name (string)
The taxonomy name.
2. $screen_post_type (string)
Post type of current Quick Edit post.

Usage

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

Defined (2)

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

/wp-admin/includes/class-wp-posts-list-table.php  
  1. if ( ! apply_filters( 'quick_edit_show_taxonomy', $show_in_quick_edit, $taxonomy_name, $screen->post_type ) ) { 
/wp-admin/includes/ajax-actions.php  
  1. if ( ! apply_filters( 'quick_edit_show_taxonomy', $tax_object->show_in_quick_edit, $taxonomy, $post['post_type'] ) ) {