quick_edit_show_taxonomy

quick_edit_show_taxonomy

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('quick_edit_show_taxonomy') is found 2 times:

  • /wp-admin/includes/ajax-actions.php line 2134
    	if ( ! empty( $data['tax_input'] ) ) {
    		foreach ( $data['tax_input'] as $taxonomy => $terms ) {
    			$tax_object = get_taxonomy( $taxonomy );
    			/** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */
    			if ( ! apply_filters( 'quick_edit_show_taxonomy', $tax_object->show_in_quick_edit, $taxonomy, $post['post_type'] ) ) {
    				unset( $data['tax_input'][ $taxonomy ] );
    			}
    		}
    	}
    
    	// Hack: wp_unique_post_slug() doesn't work for drafts, so we will fake that our post is published.
    
  • /wp-admin/includes/class-wp-posts-list-table.php line 1639
    			 * @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.
    			 */
    			if ( ! apply_filters( 'quick_edit_show_taxonomy', $show_in_quick_edit, $taxonomy_name, $screen->post_type ) ) {
    				continue;
    			}
    
    			if ( $taxonomy->hierarchical ) {
    				$hierarchical_taxonomies[] = $taxonomy;
    			} else {