Automattic\WooCommerce\StoreApi\Routes\V1\AI
Products::get_route_delete_response()
Remove products generated by AI.
Method of the class: Products{}
No Hooks.
Return
true|false|String|\WP_Error|\WP_REST_Response
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_route_delete_response( $request );
- $request(\WP_REST_Request) (required)
- Request object.
Products::get_route_delete_response() Products::get route delete response code WC 9.2.3
protected function get_route_delete_response( \WP_REST_Request $request ) { ( new UpdateProducts() )->reset_products_content(); return rest_ensure_response( array( 'removed' => true ) ); }