ed. You will need to %1$s.%2$s This will auto reload after %3$s seconds.', 'defender-security' ), '' . esc_html__( 're-login', 'defender-security' ) . '', '
', '' . $interval . '' ), 'redirect' => $redirect, 'interval' => $interval, ) ); } /** * Get the login url. * * @return string */ private function get_login_url(): string { return wp_login_url( network_admin_url( 'admin.php?page=wdf-hardener' ) ); } /** * Retrieve the tweak's label. * * @return string */ public function get_label(): string { return esc_html__( 'Change default admin user account', 'defender-security' ); } /** * Get the error reason. * * @return string */ public function get_error_reason(): string { return esc_html__( 'You have a user account with the admin username.', 'defender-security' ); } /** * Return a summary data of this tweak. * * @return array */ public function to_array(): array { return array( 'slug' => $this->slug, 'title' => $this->get_label(), 'errorReason' => $this->get_error_reason(), 'successReason' => esc_html__( 'You don\'t have a user account with the default admin username, great!', 'defender-security' ), 'misc' => array( 'host' => defender_get_hostname() ), 'bulk_description' => esc_html__( 'Using the default admin username is widely considered bad practice and opens you up to the easitest form of entry to your website. We will create new admin username for you.', 'defender-security' ), 'bulk_title' => esc_html__( 'Admin User', 'defender-security' ), ); } }