Overview
Disable WP REST API describes itself as: “Disables the WP REST API for visitors not logged into WordPress.”
It is active on 30,000+ WordPress sites and rated 4.8 out of 5 by 36 users on WordPress.org. Developers can extend it through 0 actions and 3 filters, listed below.
How to install Disable WP REST API
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “Disable WP REST API” and pick the one by Jeff Starr.
- Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI
Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:
wp plugin install disable-wp-rest-api --activateRequirements: WordPress 4.7+ · PHP 5.6.20+ · tested up to WordPress 7.1.4
Hooks & customisation
Disable WP REST API 2.6.9 fires 0 actions and 3 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.
// Filter in disable-wp-rest-api.php
apply_filters( 'disable_wp_rest_api_error', … );
// Filter in disable-wp-rest-api.php
apply_filters( 'disable_wp_rest_api_post_var', false );
// Filter in disable-wp-rest-api.php
apply_filters( 'disable_wp_rest_api_server_var', false );Need Disable WP REST API customised?
Tell us what you want changed, added or fixed and we'll reply with an estimate.
WP EXPERTS is independent and not affiliated with Jeff Starr. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.