最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

customization - Is it possible to replace PHP with NodeJS?

programmeradmin4浏览0评论

I started working with WordPress recently, because I don't have much familiarity with the PHP language, I would like to know if there is any way to program with NodeJS in WordPress.

I started working with WordPress recently, because I don't have much familiarity with the PHP language, I would like to know if there is any way to program with NodeJS in WordPress.

Share Improve this question asked Jan 14, 2020 at 15:17 Gabriel ZedineGabriel Zedine 1155 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 6

No.

You can create your custom Node backend that communicates with WordPress via REST or GraphQL, but if you want to use WordPress' functionality (such as add_filter, etc.), you need to use PHP.

See this as an opportunity to learn a new programming language.

You are limited to what you can do with NodeJS using the REST API. As @kero explained you can't use functions like add_filter/add_action.

发布评论

评论列表(0)

  1. 暂无评论