I wrote an API that takes a WooCommerce webhook and inputs the data into our CRM. I’m using: The whole script is in one file because it’s so simple. My question is what happens if php://input receives two or more webhooks at the same time. Would it operate like a queue or could one be potentially dropped? Reason I ask
Tag: woocommerce-rest-api
WooCommerce get_cart() on null
Before I updated to WC at 4.3.1 ,I had this code and it worked well add_action( ‘rest_api_init’, function () { register_rest_route( ‘px-module-woocommerce’, ‘/px/cart’, array( …
Is it possible to extend the woocommerce products rest endpoint?
Is there a way to extend the products-object in the woocommerce rest api /wp-json/wc/v3/products, in a non-destructive way, so plugins that uses that endpoint, doesn’t break. I’ve currently tried create my own rest endpoint to replicate the object, but that is now missing alot of data ofc. I’ve also tried something like this, but it didn’t seem to work. Source: