Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is it possible to completely disable Bulk Edit functionality?

I'm using Wordpress 3.1.

share|improve this question
    
can you explain what you mean by Bulk Edit Functionaity –  xLRDxREVENGEx 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 –  xLRDxREVENGEx May 25 '11 at 7:12

3 Answers 3

up vote 1 down vote accepted

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.

share|improve this answer
add_filter( 'bulk_actions-' . 'edit-post', '__return_empty_array' );
add_filter( 'bulk_actions-' . 'upload', '__return_empty_array' );

That will do the job

share|improve this answer
    
Thanks it works! –  mha Apr 13 '13 at 9:07

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.

share|improve this answer
    
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

 
discard

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.