No products in the cart.
Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
-
hamid-araghi
ParticipantUsing wp/wc rest api :
$request = new WP_REST_Request('GET', '/wc/v3/orders/<YOUR_ORDER_ID'); $response = rest_do_request($request); $server = rest_get_server(); $order = $server->response_to_data($response, false); print_r( $order['id'] ); print_r( $order['date_created'] ); print_r( $order['status'] ); ...
sources: https://wpscholar.com/blog/internal-wp-rest-api-calls/ , https://developer.wordpress.org/rest-api/reference/posts/#list-posts
- AuthorPosts
Viewing 1 post (of 1 total)