programing

워드프레스 웹사이트에서 REST API를 활성화하려면 어떻게 해야 합니까?

oldcodes 2023. 6. 8. 22:33
반응형

워드프레스 웹사이트에서 REST API를 활성화하려면 어떻게 해야 합니까?

이 라인으로 시도해 봤는데, 맞는 방법인가요?https://nplus1bicycles.com/ ?rest_route=/

이 오류가 발생했습니다.

Fatal error: Uncaught Error: Undefined class constant 'DOWNLOAD_JOBS' in /home/nplusbic/public_html/wp-content/plugins/wpml-translation-management/classes/ATE/REST/Download.php:27 
Stack trace: 
#0 /home/nplusbic/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/Adaptor.php(18): WPML\TM\ATE\REST\Download->get_routes() 
#1 /home/nplusbic/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/Base.php(23): WPML\Rest\Adaptor->add_hooks() 
#2 /home/nplusbic/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(151): WPML\Rest\Base->add_hooks() 
#3 /home/nplusbic/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(121): WPML_Action_Filter_Loader->run_factory(Object(WPML\TM\REST\FactoryLoader)) 
#4 /home/nplusbic/public_html/wp-includes/class-wp-hook.php(288): WPML_Action_Filter_Loader->deferred_loader(Object(WP_REST_Server)) 
#5 /home/nplusbic/public_h in /home/nplusbic/public_html/wp-content/plugins/wpml-translation-management/classes/ATE/REST/Download.php on line 27
There has been a critical error on your website.

활성화할 필요가 없습니다.

https://yoursite.com/wp-json/namespace/route

다음은 이를 사용하는 데 유용한 자료입니다.

Rest API 참조

언급URL : https://stackoverflow.com/questions/60216816/how-can-i-enable-rest-api-on-my-wordpress-website

반응형