// Disable XML-RPC add_filter('xmlrpc_enabled', '__return_false'); // Disable REST API for unauthenticated users add_filter('rest_authentication_errors', function($result) { if (!is_user_logged_in()) { return new WP_Error('rest_not_logged_in', 'REST API restricted.', array('status' => 401)); } return $result; }); October 2020 - TheSareeStory

Blog

Month: October 2020