ERROR No header link found with rel="https://api.w.org/"
at locateAPIRootHeader (node_modules/wpapi/lib/autodiscovery.js:32:8)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
ERROR Autodiscovery failed
at node_modules/wpapi/wpapi.js:465:10
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Can I check that the send_header function is placed in the correct file?
Also, where should I place the plugin.php file for rest-filter plugin?
rest-filter plugin
I was trying to enable the
Auto-Discovery
withvar apiPromise = WPAPI.discover( 'http://my-site.com' );
.I have added the
send_header
function tofunctions.php
under thetheme
folder.However, I got the following errors
Can I check that the
send_header
function is placed in the correct file? Also, where should I place theplugin.php
file forrest-filter plugin
? rest-filter plugin