WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to remove some items from the quick edit screen on a custom post type.

I would like to remove "slug", "date" and "password", as they will never not be used by end users.

quick edit cpt

I'm open to any suggestions!

share|improve this question
up vote 4 down vote accepted

There's no hooks to modify the Quick Edit, it has to be done with CSS and/or jQuery.

The plugin Adminimize is very good to hide administrative elements, CPTs included.

But in the Quick Edit box, for lack of CSS classes or ID's to target, it is not possible to hide the slug field, and only possible to partially hide the date adding a custom option as in the following snapshot.

adminimize cpt
click to enlarge

So, a pure jQuery solution is necessary:

add_action( 'admin_head-edit.php', 'wpse_59871_script_enqueuer' );

function wpse_59871_script_enqueuer() 
       /wp-admin/edit.php?post_type=cpt  == gallery in this example

    global $current_screen;
    if( 'edit-gallery' != $current_screen->id )
    <script type="text/javascript">         
        jQuery(document).ready( function($) {
            $('span:contains("Slug")').each(function (i) {
            $('span:contains("Password")').each(function (i) {
            $('span:contains("Date")').each(function (i) {
            $('.inline-edit-date').each(function (i) {

Related quick-edit Q&A's that I've worked

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.