Jailbreak Disable REST API Wordpress Plugin - Rating, Reviews, Demo & Download

Jailbreak Disable REST API Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Allow whitelisted REST routes to pass through Disable REST API filters

Define REST route whitelist

Define ‘JAILBREAK_DRA_WHITELIST’ constant in wp-config.php

define('JAILBREAK_DRA_WHITELIST', [
    '/wp/v2/posts',
    '/wp/v2/posts/1234',
    '/wp/v2/tags',
    '/wp/v2/tags/(?P<id>[\d]+)',
]);

/* That's all, stop editing! Happy blogging. */

Filters

  • jailbreak_dra_is_whitelisted

Example:

add_filter( 'jailbreak_dra_is_whitelisted', 'example_callback', 10, 3);

function example_callback(bool $isWhitelisted, string $currentRESTRoute, array $whitelist): bool {
    // Perform your checks and return a boolean
    return $isWhitelisted;
}
  • jailbreak_dra_whitelist

Example:

add_filter( 'jailbreak_dra_whitelist', 'example_callback');

function example_callback(array $whitelist): array {
     // Modify $whitelist and return string[]
    return $whitelist;
}

Do I need this plugin?

Requirements

If you like the plugin, feel free to rate it or donate via PayPal. Thanks a lot! 🙂

For Bloggers

If you have written an article about Jailbreak Disable REST API, do let me know. For any questions, shoot me an email at info@typist.tech

For Developers

Jailbreak Disable REST API is open source and hosted on GitHub. Feel free to make pull requests.

Who make this plugin?

Tang Rufus, a freelance developer for hire.
I make Typist Tech also.

Support

To save time so that we can spend it on development, please read the plugin’s FAQs first.
Before requesting support, and ensure that you have updated jailbreak-disable-json-api and WordPress to the latest released version and installed PHP 7 or later.

We hang out in the WordPress support forum for this plugin.

If you know what GitHub is, use GitHub issues instead.

Screenshots

No screenshots provided


Reviews & Comments