Configure a webhook on Bitbucket
To create a webhook, go to your Bitbucket repository, then to the “Settings” page, and then the webhook creation page.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed