Support » Plugin: Bulk Actions Select All » Bulk actions and post status with ‘show_in_admin_all_list’: false option

  • When a post type has a post status with the option show_in_admin_all_list set to false, bulk action with post_status=all is stopped by this condition:

    `
    if ( $num_items != $num_posts ) {
    return;
    }
    `

    F.e. i have 12 posts in ‘all’ tab (10 per page) and 5 posts in a tab with show_in_admin_all_list:false post status; this condition turns to if ( 12 != 17 ), and the plugin silently returns here, so i get only 10 posts processed.

    Am i doing something wrong? Is there a workaround? Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jesper van Engelen

    (@engelen)

    Heya! Thanks for your report. I am unable to reproduce the issue you’re facing.

    I’ve created a custom post status with show_in_admin_all_list set to false. Then, I assigned the new post status to one of my posts. Going to the “All posts” overview, I can still select all posts and trash all of them.

    Could you inform me of the exact steps to reproduce this issue?

    (it does remove all posts, and not only the ones without that post status, but part of this appears to be a problem in WP core, since the post counter in the pagination box also displays the wrong number of posts)

    Best,
    Jesper

    Looks like the problem is more complex, something in my pre_get_posts hook is also involved. Investigating

    Plugin Author Jesper van Engelen

    (@engelen)

    Great, let me know when you find anything!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bulk actions and post status with ‘show_in_admin_all_list’: false option’ is closed to new replies.