To remove the bulk actions dropdown menu, you simply need to remove all actions! Just hook in and replace the default actions array with an empty array.
add_filter( 'bulk_actions-' . 'edit-post', '__return_empty_array' );
In this case, only the bulk actions menu on the All Posts page will be removed. To use elsewhere, replace ‘edit-post’ with the screen ID.
May I ask where this code will be pasted? on what file? thanks…
Code goes in the wp-content/themes//functions.php file near the bottom of the file before the last “}”.
HOw can i do it only for custom post type