我正在使用wordpress和composer以及一些自定义rest-api endpoints .
我用这样的 register_rest_route()
设置自定义 endpoints
register_rest_route( 'custom/v1', '/order', array(
'methods' => 'POST',
'callback' => 'create_order'
));
并在回调 create_order
我'm trying to use a composer library but without success. I' m回到500错误 . 在网站的其余部分,编辑器库可以无问题地访问 .
有人有想法吗?
谢谢