apply_filters( 'quick_edit_show_taxonomy', bool $show_in_quick_edit, string $taxonomy_name, string $post_type )

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


Description Description


Parameters Parameters

$show_in_quick_edit

(bool) Whether to show the current taxonomy in Quick Edit.

$taxonomy_name

(string) Taxonomy name.

$post_type

(string) Post type of current Quick Edit post.


Top ↑

Source Source

File: wp-admin/includes/class-wp-posts-list-table.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

  1. Skip to note 1 content
    Contributed by Steven Slack
    /**
     * Hide tags from quick edit if user does not have admin priviledges
     */
    function hide_tags_from_quick_edit( $show_in_quick_edit, $taxonomy_name, $post_type ) {
        if ( 'post_tag' === $taxonomy_name && ! current_user_can( 'manage_options' ) ) {
            return false;
        } else {
            return $show_in_quick_edit;
        }
    }
    add_filter( 'quick_edit_show_taxonomy', 'hide_tags_from_quick_edit', 10, 3 );
    

You must log in before being able to contribute a note or feedback.