Remove Bulk Action For non admin user

Here’s how you can remove bulk actions for any user not an administrator.

add_action( 'wp_loaded', 'my_remove_bulk_actions' );
function my_remove_bulk_actions() {
if ( ! is_admin() )
   return;

if ( ! current_user_can( 'administrator' ) ) {
  add_filter( 'bulk_actions-edit-shop_order', '__return_empty_array', 100 );

 }
}

If you would like to target just the shop manager you can edit the if statement

if ( ! current_user_can( 'administrator' ) )

to

if ( current_user_can( 'shop_manager' ) )

Tested and working on latest version of WordPress, 5.0.3 at time of posting.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)