woocommerce_rest_insert_system_status_tool
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
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 );