ਵੇਰਵਾ
This plugin modifies the /wp-json/wp/v2/users
endpoint to require authentication.
By default on a WordPress site you can list the users that have posted content on the site by visiting this endpoint.
This plugin requires the user to be authenticated to view the list of users.
What this means
If you go directly to the URL /wp-json/wp/v2/users
you will get a 401 Unauthorized
response.
But if you open a block editor page and run the following from the browser console,
await wp.apiFetch({path: 'wp/v2/users'});
you will get a list of users (because the wp.apiFetch()
function authenticates the user’s call to the WordPress REST API).
Author
Sal Ferrarello / salferrarello.com
ਸਮੀਖਿਆਵਾਂ
There are no reviews for this plugin.
ਯੋਗਦਾਨੀ ਤੇ ਵਿਕਾਸਕਾਰ
“Require Auth Users REST Endpoint” is open source software. The following people have contributed to this plugin.
ਯੋਗਦਾਨੀ“Require Auth Users REST Endpoint” ਦਾ ਆਪਣੀ ਭਾਸ਼ਾ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰੋ।
ਵਿਕਾਸ ਕਾਰਜ ਵਿੱਚ ਰੁਚੀ ਰੱਖਦੇ ਹੋ?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.