customization - Is it possible to replace PHP with NodeJS?

I started working with WordPress recently, because I don't have much familiarity with the PHP language, I would lik

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744836779a4596310.html

相关推荐

  • customization - Is it possible to replace PHP with NodeJS?

    I started working with WordPress recently, because I don't have much familiarity with the PHP language, I would lik

    2天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信