Add Products to Woocommerce through WP API
After a lot of searching and banging my head everywhere I have successfully implemented to add WooCommerce products through Rest API. Here is my complete working code for reference :- $api_response = wp_remote_get(‘www.myapi.com’); $body = wp_remote_retrieve_body($api_response); /****** API not ready yet…working on it *******/ $data = [ ‘type’ => ‘variable’, ‘description’ => ‘Trying it out … Read more