woocommerce_rest_insert_system_status_tool action-hookWC 1.0

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

Usage

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...
}
$tool(array)
Details about the tool that has been executed.
$request(WP_REST_Request)
The current WP_REST_Request object.

Where the hook is called

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

Where the hook is used in WooCommerce

Usage not found.