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.

Parameters

$show_in_quick_editbool
Whether to show the current taxonomy in Quick Edit.
$taxonomy_namestring
Taxonomy name.
$post_typestring
Post type of current Quick Edit post.

Source

if ( ! apply_filters( 'quick_edit_show_taxonomy', $show_in_quick_edit, $taxonomy_name, $screen->post_type ) ) {

Changelog

VersionDescription
4.2.0Introduced.

User Contributed Notes

  1. Skip to note 2 content
    /**
     * 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.