created
created
Hook Type: action
Displaying hooks found in version: woocommerce.10.4.3do_action('created') is found 4 times:
- /src/Internal/RestApi/Routes/V4/Customers/Controller.php line 265
* @param WP_User $user_data Data used to create the customer. * @param WP_REST_Request $request Request object. * @since 10.2.0 */ do_action( $this->get_hook_prefix() . 'created', $user_data, $request ); $request->set_param( 'context', 'edit' ); $response = $this->prepare_item_for_response( $customer, $request ); $response->set_status( WP_Http::CREATED ); $response->header( 'Location', rest_url( sprintf( '/%s/%s/%d', $this->namespace, $this->rest_base, $customer->get_id() ) ) );
- /src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php line 306
* @param WP_Comment $note Inserted object. * @param WP_REST_Request $request Request object. * @since 10.2.0 */ do_action( $this->get_hook_prefix() . 'created', $note, $request ); $request->set_param( 'context', 'edit' ); $response = $this->prepare_item_for_response( $note, $request ); $response->set_status( WP_Http::CREATED ); $response->header( 'Location', rest_url( sprintf( '/%s/%s/%d', $this->namespace, $this->rest_base, $note_id ) ) );
- /src/Internal/RestApi/Routes/V4/Orders/Controller.php line 329
* @param WC_Order $order Inserted object. * @param WP_REST_Request $request Request object. * @since 10.2.0 */ do_action( $this->get_hook_prefix() . 'created', $order, $request ); $request->set_param( 'context', 'edit' ); $response = $this->prepare_item_for_response( $order, $request ); $response->set_status( WP_Http::CREATED ); $response->header( 'Location', rest_url( sprintf( '/%s/%s/%d', $this->namespace, $this->rest_base, $order->get_id() ) ) );
- /src/Internal/RestApi/Routes/V4/Refunds/Controller.php line 313
* @param WC_Order_Refund $refund Inserted object. * @param WP_REST_Request $request Request object. * @since 10.2.0 */ do_action( $this->get_hook_prefix() . 'created', $refund, $request ); $request->set_param( 'context', 'edit' ); $response = $this->prepare_item_for_response( $refund, $request ); $response->set_status( WP_Http::CREATED ); $response->header( 'Location', rest_url( sprintf( '/%s/%s/%d', $this->namespace, $this->rest_base, $refund->get_id() ) ) );