• Hi everyone,
    after creating taxonomies for my custom post type they all show up in QuickEdit menu. I want to hide them all in QuickEdit but can’t find anything about how to do it. Could anyone please help? 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve been in this situation these days and couldn’t find a solution, but I saw that this is solved in v4.2, they add and option ‘show_in_quick_edit’ on the register_taxonomy function.

    I have posted the answer on stackoverflow site and pasting the same here;

    Try doing by javascript. (I use jquery).

    ` jQuery(document).ready(function($){‘use strict’;

    if ($(‘.post-type-customposttype’).length) { //if we are on custom type page change the customposttype with yours slug
    $(‘.taxonomy-checklist’).prev().prev().hide(); // to hide title. taxonomy is the your custom taxonomy’s slug.
    $(‘.taxonomy-checklist’).hide(); //to hide box
    } });`

    add this code to a js file (lets say *customadmin.js* and assume its in the *js* folder that is in the *theme folder*) and enqueue the file on admin side:

    `if(!function_exists(‘addstyle_to_admin’)):
    function addstyle_to_admin() {
    if(is_admin()){
    wp_enqueue_script(‘myadminpanelscript’,get_template_directory_uri() . ‘/js/customadmin.js’,array(‘jquery’),false,false);
    }
    }
    add_action(‘admin_enqueue_scripts’,’addstyle_to_admin’);
    endif;`

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘hide taxonomy fields in QuickEdit menu’ is closed to new replies.