woocommerce_rest_insert_system_status_tool хук-событиеWC 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...
}
$tool(массив)
Details about the tool that has been executed.
$request(WP_REST_Request)
The current WP_REST_Request object.

Где вызывается хук

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 314
do_action( 'woocommerce_rest_insert_system_status_tool', $tool, $request );

Где используется хук в WooCommerce

Использование не найдено.