do_action( "woocommerce_rest_insert_{$this->post_type}", WP_Post $post, WP_REST_Request $request, boolean $creating )

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


Description Description


Parameters Parameters

$post

Post object.

$request

Request object.

$creating

True when creating item, false when updating.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php



Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.