How to Change the WordPress Login Page...
This snippet allows you to easily change the URL of the logo on your WordPress login ...

WPCodeBox
39
Learn how to disable the REST API in your WordPress site for logged-out users and build safer WordPress websites.
function disable_rest_api_for_guests($access) {
if(!is_user_logged_in()) {
return new WP_Error(
'rest_disabled',
__('The REST API is disabled for guests.'),
array('status' => 403)
);
}
return $access;
}
add_filter('rest_authentication_errors','disable_rest_api_for_guests');