do_action( "rest_insert_{$this->post_type}", ... )

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

Parameters:
  • $post WP_Post
  • $request WP_REST_Request
  • $creating bool