woocommerce_rest_insert_system_status_tool action-hookWC 1.0

Fires after a WooCommerce REST system status tool has been executed.


add_action( 'woocommerce_rest_insert_system_status_tool', 'wp_kama_woocommerce_rest_insert_system_status_tool_action', 10, 2 );

 * Function for `woocommerce_rest_insert_system_status_tool` action-hook.
 * @param array           $tool    Details about the tool that has been executed.
 * @param WP_REST_Request $request The current WP_REST_Request object.
 * @return void
function wp_kama_woocommerce_rest_insert_system_status_tool_action( $tool, $request ){

	// action...
Details about the tool that has been executed.
The current WP_REST_Request object.

Where the hook is called

woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php 314
do_action( 'woocommerce_rest_insert_system_status_tool', $tool, $request );

Where the hook is used in WooCommerce

Usage not found.