WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

woocommerce_rest_insert_(post_type)_object хук-событие . WC 1.0

Fires after a single object is created or updated via the REST API.

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

add_action( 'woocommerce_rest_insert_(post_type)_object', 'action_function_name_633', 10, 3 );
function action_function_name_633( $object, $request, $creating ){
	// action...
}
$object(WC_Data)
Inserted object.
$request(WP_REST_Request)
Request object.
$creating(true/false)
True when creating object, false when updating.

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

WC_REST_CRUD_Controller::create_item()
woocommerce_rest_insert_(post_type)_object
WC_REST_CRUD_Controller::update_item()
woocommerce_rest_insert_(post_type)_object
woocommerce/includes/abstracts/abstract-wc-rest-crud-controller.php 214
do_action( "woocommerce_rest_insert_{$this->post_type}_object", $object, $request, true );
woocommerce/includes/abstracts/abstract-wc-rest-crud-controller.php 259
do_action( "woocommerce_rest_insert_{$this->post_type}_object", $object, $request, false );

Где используется хук (в ядре WC)

includes/api/v2/class-wc-rest-products-v2-controller.php 53
add_action( "woocommerce_rest_insert_{$this->post_type}_object", array( $this, 'clear_transients' ) );