API integration
-
I am looking for a place to host a business website and I have used my own installation of WordPress on GoDaddy previously for a hobby project, but I don’t want the hassle of maintaining my own installation if it is for my business.
So I’m looking at the WordPress.com plans and I need to know if any of those will support me adding custom server code. Specifically I need to be able to integrate a bespoke booking service into my WordPress site. If I was hosting it myself I would just create the container page, then edit the PHP to include my API call. Can I still do this with any of the WordPress.com plans?
Thanks.
-
Hi there!
On the Business plan, you can add plugins that allow you to add some code. You will not, however, be able to edit the site’s PHP.
Here’s a little more about that:
https://en.support.wordpress.com/ftp-access/#adding-code-snippets
Let me know if you have more questions about that.
-
Hi,
Thanks for the response.
I read some of the documentation about actions.
So to confirm, I should be able to write a php function which I register as a hook that takes the logged on user ID from the WordPress global variables and pass it via curl to my external url then have the response from the external service rendered into the current page by hooking into “the_post” event to modify the content?
Is there any way to test that on the free tier plan? I need to confirm that I can do what I need before I take out a subscription to a paid plan.
Thanks.
-
You could do that by developing your own plugin, yes.
We don’t have a way to test this out on the free plan, but we do offer full refunds: https://en.support.wordpress.com/manage-purchases/#refund-policy
- The topic ‘API integration’ is closed to new replies.