Support » Plugin: Disable WP REST API » Good Product!

  • I loaded this plugin because it was indicated that all we needed to do is install, activate, and forget about it.

    I cannot say that I am entirely happy with it. I do not want to give any message to anyone who is trying to access anything on my website by using rest API….mostly because this seems to be only done by hackers in my case.

    But evidently, the only way I can do that is with this small instruction in the plugin information:
    This message may customized via the filter hook, disable_wp_rest_api_error.

    *** UPDATED ***
    This update is made within a half hour of my original post. I was quite pleased that the developer responded extremely quickly, and provided information that I was needing. That was great customer service. My thanks to Jeff, for the product and the information.

    • This topic was modified 1 month, 3 weeks ago by ralphkudzit.
Viewing 1 replies (of 1 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Hi @ralphkudzit,

    Normally reviews aren’t meant for support requests, but I am glad to help.

    To display a blank message, you can add this snippet to your theme’s functions.php file:

    function disable_wp_rest_api_error_custom($message) {
    	
    	return '';
    	
    }
    add_filter('disable_wp_rest_api_error', 'disable_wp_rest_api_error_custom');

    To change the blank message to something custom, edit the empty return quotes '' to 'Whatever' text you would like.

    I hope this helps. If you have any other questions, feel free to post in the plugin support forum, where I always try to reply very quickly.

    • This reply was modified 1 month, 3 weeks ago by Jeff Starr. Reason: clarity
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this review.