I have a WordPress site running on an external server, I also have a local machine running a Python script.
I am looking for a way to trigger the python script from the WordPress install.
I know I can use the publish_post hook in WordPress to activate whenever a new post is published but I am unsure of the best way to link that to my local machine.
Anyone have an example of something similar being done? Would the WordPress Rest API be of any use here?