How to create a delivery URL that listens to a webhook on woocommerce
<p>I have a 2 websites, lets say SITE1 &amp; SITE2</p>

<p>both running woo-commerce. </p>

<p>SITE1 receives orders, for every completed order on SITE1 i have to send an initiation to SITE2 with order information. </p>

<p>I created an webhook on SITE1 that posts information on SITE2 on every order creation</p>

<p><a href="https://site2.com/webhook/" rel="nofollow">https://site2.com/webhook/</a></p>

<p>This above URL on SITE2 is a simple PHP file that accepts whatever that is posted to the URL.</p>

<p>But anything posted to that URL gets a 403 Forbidden by default.</p>

<p>How to create an URL that accepts woocommerce webhook post request that trigger a function? </p>

<p>Is there any inbuilt function for that ? </p>