I want to call some web service when i publish a post. I want to add a checkbox so as to decide whether to call or not call after publishing.
I have found the code to call both REST and SOAP web services but i dont know:
- How to add a checkbox in the "new post" admin page.
- How to invoke a function that contains web service call code, in "on publish" action
- How to use the checkbox value to invoke or not invoke the above function and
- How is post title, post category, post excerpt represented so as to add the values in my request.