MaxtDesign

Troubleshooting

Contact Form 7 Stopped Working

Contact Form 7 uses the REST API for form submissions. If forms stopped submitting after activating this plugin:

  • 1.Go to Settings → REST API Control
  • 2.In the Endpoint Whitelist section, find the contact-form-7 namespace
  • 3.Check its checkbox to whitelist all CF7 endpoints
  • 4.Click Save Settings
  • If CF7 was active when you activated this plugin, it should have been whitelisted automatically.

    WooCommerce Cart/Checkout Not Working

    WooCommerce's cart and checkout blocks use the Store API:

  • 1.Go to Settings → REST API Control
  • 2.Whitelist the wc/store and wc/store/v1 namespaces
  • 3.Save settings
  • Note: The WooCommerce admin API (wc/v3) is only needed for logged-in admin users, which have access by default.

    Block Editor (Gutenberg) Issues

    The block editor should work normally since it runs as a logged-in user. If you experience issues:

  • 1.Check that "Allow REST API for all logged-in users" is enabled (default)
  • 2.If you have per-role restrictions, make sure the editing role (Editor/Administrator) is not restricted
  • 3.Try disabling the plugin temporarily to confirm it's the cause
  • Custom Plugin Endpoints Not Working

    If a plugin stops working after activation:

  • 1.Check the plugin's documentation for which REST API endpoints it uses
  • 2.Go to the Endpoint Whitelist section
  • 3.Find the plugin's namespace in the tree
  • 4.Whitelist the namespace or specific routes
  • 5.Save settings
  • The plugin shows compatibility warnings for known plugins (CF7, WooCommerce, Jetpack, WPForms) if their endpoints are not whitelisted.

    Testing Whether the API Is Blocked

    For Unauthenticated Users

    Open a private/incognito window (not logged in) and visit:

    yoursite.com/wp-json/wp/v2/users

    You should see:

    {
        "code": "mdra_rest_disabled",
        "message": "REST API access restricted.",
        "data": { "status": 401 }
    }

    For Specific Roles

  • 1.Install the "User Switching" plugin
  • 2.Switch to a user with the restricted role
  • 3.Visit a REST API endpoint to verify it's blocked
  • 4.Visit a whitelisted endpoint to verify it works
  • Settings Not Saving

  • 1.Verify you have administrator permissions (manage_options capability)
  • 2.Check for JavaScript errors in the browser console (F12)
  • 3.Ensure no security plugin is blocking the POST request
  • 4.Try clearing your browser cache
  • Import Failed

  • Ensure the file is a valid JSON file exported from this plugin
  • The file must have the correct structure (disable_rest_api, error_message, whitelisted_endpoints, etc.)
  • Maximum upload size is determined by your PHP configuration
  • PHP Version Error

    The plugin requires PHP 8.2 or higher. Check your PHP version:

  • 1.Go to Tools → Site Health → Info → Server
  • 2.If PHP is below 8.2, contact your host to upgrade
  • Getting Support

    Use the [WordPress.org support forum](https://wordpress.org/support/plugin/maxtdesign-disable-rest-api/):

  • 1.Describe the issue
  • 2.Include: WordPress version, PHP version, active theme
  • 3.List any other security or REST API plugins you're using
  • 4.Include the error message or behavior you're seeing