How can I remove bulk actions section from post and page lists pages on wordpress

enter image description here

I tried with following code in functions.php as suggested on another thread but it does nothing

add_action( 'wp_loaded', 'wpse_53371_remove_bulk_actions' );
function wpse_53371_remove_bulk_actions()
    add_filter( 'bulk_actions-edit-post', '__return_empty_array' );
    add_filter( 'bulk_actions-upload',    '__return_empty_array' );

Should I hide it will css ?

  • 1
    Not sure what row you want to hide here, do you e.g. have a screenshot, that could help others better understand the question?
    – birgire
    Oct 17 '16 at 13:27
  • I updated the question with screenshot
    – Vikram
    Oct 18 '16 at 6:08
  • Where you've put your code ? I wanna know the file name. Like functions.php etc.
    – CodeMascot
    Oct 18 '16 at 6:22
  • yes I placed it in functions.php file , tried with plugin as well.
    – Vikram
    Oct 18 '16 at 6:44
  • Does not it workings every where or only in a custom post or in post or page post type ?
    – CodeMascot
    Oct 18 '16 at 7:34

Your Answer

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

Browse other questions tagged or ask your own question.