Filter hook 'quick_edit_show_taxonomy'

in WP Core File wp-admin/includes/class-wp-posts-list-table.php at line 1646

View Source

quick_edit_show_taxonomy

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

Hook Information

File Location wp-admin/includes/class-wp-posts-list-table.php View on GitHub
Hook Type Filter
Line Number 1646

Hook Parameters

Type Name Description
bool $show_in_quick_edit Whether to show the current taxonomy in Quick Edit.
string $taxonomy_name Taxonomy name.
string $post_type Post type of current Quick Edit post.

Usage Examples

Basic Usage
<?php
// Hook into quick_edit_show_taxonomy
add_filter('quick_edit_show_taxonomy', 'my_custom_filter', 10, 3);

function my_custom_filter($show_in_quick_edit, $taxonomy_name, $post_type) {
    // Your custom filtering logic here
    return $show_in_quick_edit;
}

Source Code Context

wp-admin/includes/class-wp-posts-list-table.php:1646 - How this hook is used in WordPress core
<?php
1641  			 *
1642  			 * @param bool   $show_in_quick_edit Whether to show the current taxonomy in Quick Edit.
1643  			 * @param string $taxonomy_name      Taxonomy name.
1644  			 * @param string $post_type          Post type of current Quick Edit post.
1645  			 */
1646  			if ( ! apply_filters( 'quick_edit_show_taxonomy', $show_in_quick_edit, $taxonomy_name, $screen->post_type ) ) {
1647  				continue;
1648  			}
1649  
1650  			if ( $taxonomy->hierarchical ) {
1651  				$hierarchical_taxonomies[] = $taxonomy;

PHP Documentation

<?php
/**
			 * Filters whether the current taxonomy should be shown in the Quick Edit panel.
			 *
			 * @since 4.2.0
			 *
			 * @param bool   $show_in_quick_edit Whether to show the current taxonomy in Quick Edit.
			 * @param string $taxonomy_name      Taxonomy name.
			 * @param string $post_type          Post type of current Quick Edit post.
			 */
Quick Info
  • Hook Type: Filter
  • Parameters: 3
  • File: wp-admin/includes/class-wp-posts-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.