Is it possible to completely disable Bulk Edit functionality?
I'm using Wordpress 3.1.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityIs it possible to completely disable Bulk Edit functionality?
I'm using Wordpress 3.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.
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".
add_filter( 'bulk_actions-' . 'edit-post', '__return_empty_array' );
add_filter( 'bulk_actions-' . 'upload', '__return_empty_array' );
That will do the job
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.