this code is used to enable WP REST API… Normally it should be enabled by default.
In your case if its not then this code will explicitely enble the WP REST API…
Now internally if some other problems is the WP REST API, that not possible to tell.
https://mywpdomain.com/wp-json url should indicate the WP REST API status
1 Like
In the first image I used my mail and password and still the same error, I dont know what to do…
It seems like you’re having persistent issues with the REST API authentication. Ensure you’re using the correct WordPress username and password, not the email. If that doesn’t work, try generating a new application password. Additionally, verify that the REST API is enabled in “wp-config.php” with define “(‘WP_REST_API_DISABLED’, false);”. Also, check if any security plugins or settings from your hosting provider might be causing the issue. For further assistance, contact your hosting provider with detailed error logs.
1 Like