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

woocommerce_rest_insert_product_review хук-событие . WC 1.0

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

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

add_action( 'woocommerce_rest_insert_product_review', 'action_function_name_2576', 10, 3 );
function action_function_name_2576( $product_review, $request, $creating ){
	// action...
}
$product_review(WP_Comment)
Inserted object.
$request(WP_REST_Request)
Request object.
$creating(true/false)
True when creating item, false when updating.

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

WC_REST_Product_Reviews_V1_Controller::create_item()
woocommerce_rest_insert_product_review
WC_REST_Product_Reviews_V1_Controller::update_item()
woocommerce_rest_insert_product_review
WC_REST_Product_Reviews_Controller::create_item()
woocommerce_rest_insert_product_review
WC_REST_Product_Reviews_Controller::update_item()
woocommerce_rest_insert_product_review
woocommerce/includes/api/v1/class-wc-rest-product-reviews-controller.php 292
do_action( "woocommerce_rest_insert_product_review", $product_review, $request, true );
woocommerce/includes/api/v1/class-wc-rest-product-reviews-controller.php 345
do_action( "woocommerce_rest_insert_product_review", $product_review, $request, true );
woocommerce/includes/api/class-wc-rest-product-reviews-controller.php 478
do_action( 'woocommerce_rest_insert_product_review', $review, $request, true );
woocommerce/includes/api/class-wc-rest-product-reviews-controller.php 586
do_action( 'woocommerce_rest_insert_product_review', $review, $request, false );

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

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