Custom code in theme’s functions.php
-
Hi, I’m looking at wordpress as a solution for my company’s headless CMS. One question I had was whether custom code in a custom theme would work with wordpress.com’s business plan. For example, can I create a custom theme that adds additional REST endpoints to my wordpress? Would I be able to override where the ‘Preview Post’ button redirects from the admin console?
Is custom code in a custom theme supported by wordpress.com’s business plan? Thank you! -
Hi there,
You can upload a custom theme on our Business Plan.
I’m not sure what you mean by custom code in a custom theme, though. And I don’t think it’s possible to use a theme to add additional API endpoints to WordPress, period. If it is possible to add custom API endpoints at all, a plugin seems more likely. I’m not a WordPress developer, though, so that’s just an educated guess.
The best place to ask about how to go about doing this, is the advanced forum over on WordPress.org, though, or else the WordPress Stackexchange, as this is a question on customizing how the WordPress software works, rather than specifically hosting on WordPress.com.
https://wordpress.org/support/forum/wp-advanced/
If it’s possible to do this via a theme or plugin in WordPress, then you should be able to also use such a theme or plugin on WordPress.com on our Business Plan, but I can’t guarantee it.
-
Thanks for pointing me in the right direction! I’m new to wordpress, so I’m still exploring what’s possible on wordpress.org (self-hosted) vs wordpress.com (business plan). I read in a forum post here that php code in a custom theme would run on wordpress.com, but since it wasn’t explicitly documented I wanted to clarify what the limitations were.
- The topic ‘Custom code in theme’s functions.php’ is closed to new replies.