How to trigger an action upon applying bulk edit options like edit or move to trash? Are there any specific hooks?

How to trigger an action upon applying bulk edit options like edit or move to trash? Are there any specific hooks?

Upon creating, editing or deleting a new product, I'm able to delete some set of transients but couldn't get it done if it's a bulk action at the admin panel like bulk edit or move to trash.

Upon creating, editing or deleting a new product, I'm able to delete some set of transients but couldn't get it done if it's a bulk action at the admin panel like bulk edit or move to trash.

I've used the action hook 'transition_post_status' and whenever there is a change from old status to a new status or if it's an update scenario then my transient deleting code gets executed. But this doesn't work for bulk edit or bulk move to trash.

function ga_delete_transients( $new_status, $old_status, $post ) {//deletes transients if exists upon create,trash and update

global $post,$wpdb;

if ( $post->post_type !== 'product' ) return; if($old_status!==$new_status|| $old_status == 'publish' && $new_status =='publish'){ $sql = "SELECT * FROM labtag_wp.wp_labtag_options WHERE option_name LIKE ('%_transient_ga_loop_products_%')"; $ga_transient_result = $wpdb->get_results($sql); if(!empty($ga_transient_result)){

$wpdb->query( "DELETE   FROM labtag_wp.wp_labtag_options WHERE `option_name` LIKE ('%\_transient\_ga_loop_products_%')" );
}

}

}

add_action( 'transition_post_status', 'ga_delete_transients', 10, 3 );

I get all the transients deleted when it's creating, updating or moving to trash for a new product but upon bulk actions, nothing happens.

php wordpress

What's new in Bootstrap 5 and when Bootstrap 5 release date?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Random Password Generator Online

HTML Color Picker online | HEX Color Picker | RGB Color Picker

Hire Dedicated Wordpress Developer

Find the latest jobs available in The Middle East today.

Hire Dedicated PHP Developer

Looking to hire affordable yet experienced PHP developers? **[Hire Dedicated PHP Developer](https://hourlydeveloper.io/hire-dedicated-php-developer/ "Hire Dedicated PHP Developer")**, who can convert your idea to reality, within the stipulated...

PHP Web Application Development Company

As a top **PHP Web Application Development Company in USA**[https://www.dataeximit.com/php-development-services/](https://www.dataeximit.com/php-development-services/ "https://www.dataeximit.com/php-development-services/"), we at Data EximIT have...

Advantages of Hiring PHP Developer for your Website Project

PHP - Hypertext pre-processor, a scripting language used by many people in developing web pages, but most of us are unaware even of the full form. To train someone and make them learn this whole language is as difficult and time-consuming as it is...

PHP Website Development

Skenix Infotech is a leading PHP Web Development Company that helps companies get results with industry best practices. Get affordable PHP Development Services.