2

Is it possible to completely disable Bulk Edit functionality?

I'm using Wordpress 3.1.

5
  • can you explain what you mean by Bulk Edit Functionaity May 25 '11 at 6:45
  • in wp-admin go to the edit.php page (the page that lists all the posts) and then select edit in the bulk actions list/ It has options for categories, tags, etc which i don't need them to modify
    – EddyR
    May 25 '11 at 6:57
  • nope do not think its possible May 25 '11 at 7:12
  • how do to disable rank math bulks ?
    – SQROM
    Dec 4 '21 at 17:33
  • @SQROM don't post comments or questions as the solution to other peoples answers. As an aside this Q has nothing to do with Rank Math, and 3rd party plugin support questions are off topic here, you should ask in a Rank Math community or via their official support routes
    – Tom J Nowell
    Dec 4 '21 at 18:29
-1

A more reliable approach than messing with CSS would be to add some Javascript in the admin_head action, and basically override the built-in "inlineEditPost" function (located in wp-admin/js/inline-edit-post.js and easier to read in inline-edit-post.dev.js). I haven't looked into it much specifically, but the brute force method would be to copy (and rename) that entire function and basically reverse the show/hide methods.

I've confirmed that disabling Javascript disables the Bulk Edit functionality entirely, so there wouldn't really be a workaround to your override.

8
   add_filter( 'bulk_actions-edit-weddings', 'remove_from_bulk_actions' );
    function remove_from_bulk_actions( $actions ){
        unset( $actions[ 'edit' ] );
        return $actions;
    }

Change "weddings" with the custom post name, if no custom post just use "post".

5
add_filter( 'bulk_actions-' . 'edit-post', '__return_empty_array' );
add_filter( 'bulk_actions-' . 'upload', '__return_empty_array' );

That will do the job

1
  • If this isn't working, you may need to set a priority, e.g. add_filter( 'bulk_actions-' . 'edit-post', '__return_empty_array', 99 );
    – Gavin
    Oct 1 '21 at 14:13
1

You can completely disable bulk edit input by removing all actions from this filter:

function removeBulkActionsInput ($actions) {
        // remove all actions
        return array();
}
add_filter ('bulk_actions-edit-' . POST_TYPE, 'removeBulkActionsInput' );

POST_TYPE ist your custom post type as string or e.g. 'post' for usual posts.

0

I don't believe this is possible at this time. It's part of the Wordpress core and don't think there's a hook function to turn it off.

1
  • I figured that might be true. I could disable it with some css I suppose, but that's not a fool proof solution.
    – EddyR
    May 25 '11 at 6:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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