0

The goal here is to be able to use add_post_type_support('product','author'); or any other post_type without adding the author field in bulk/quick edit form.

How to remove the author field from bulk/quick edit form?

1 Answer 1

0

After exploring several options, I landed on this as the cleanest server side alternative:

add_filter('admin_head-edit.php',function(){

    $screen = get_current_screen();

    if( post_type_supports($screen->post_type,'author' )){
        
        // remove from bulk/quick edit
        
        remove_post_type_support($screen->post_type,'author');

        add_filter( 'manage_posts_columns', function($columns){
            
            $columns['author'] = __('Author');
            
            return $columns;
        });
    }
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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