REST API Only

REST API Only

Details
View on WordPress

This plugin forces all non-admin, non-AJAX, and non-REST API requests to return a 404 status code.
Ideal for headless WordPress environments or sites that should expose only the API.

Details

Plugin code:
rest-api-only
Plugin version:
1.0.1
Author:
Outdated:
No
WP version:
5.0 or higher
PHP version:
or higher
Test up to WP version:
6.9
Total installations:
0
Last updated:
2025-12-16
Rating:
Times rated:
0
404
api
headless
rest
security