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.2

apply_filters('quick_edit_show_taxonomy') is found 2 times:

  • /wp-admin/includes/ajax-actions.php line 2134
    2130
    2131
    2132
    2133
    2134
    2135
    2136
    2137
    2138
    2139
    2140
    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
    1635
    1636
    1637
    1638
    1639
    1640
    1641
    1642
    1643
    1644
    1645
    * @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 {