/** * Plugin: Google Login Blacklist Check (MySQLi - Linkeei) * Description: Blocks Google login if email is blacklisted (from DB). * Author: Linkeei Dev */ add_hook('james_hook_before_register', function($data) { global $wo; $marker = $data['marker'] ?? ''; $user = $data['user_data'] ?? []; if ($marker !== 'login-with-google') { return; } $email = strtolower(trim($user['email'] ?? '')); if (empty($email)) { throw new Exception("Login blocked: Email is missing."); } $conn = $wo['sqlConnect']; // Use Linkeei's connection // Escape and prepare the query $email_escaped = mysqli_real_escape_string($conn, $email); $query = "SELECT COUNT(*) as count FROM email_blacklist WHERE LOWER(email) = LOWER('$email_escaped')"; $result = mysqli_query($conn, $query); if ($result) { $row = mysqli_fetch_assoc($result); if ((int)$row['count'] > 0) { throw new Exception("Login blocked: Your email is blacklisted."); } } else { throw new Exception("Login blocked: DB error."); } }); Team4eCom
Team4eCom
Team4eCom

Team4eCom

@team4ecom

Are your Amazon product listings feeling a bit lackluster? 🛍️ Don't worry, we've got the solution! 🚀

Introducing our top-notch A+ #contentwriting services! 📝✨

🌈 What's in it for you?
✅ Captivating Product Descriptions
✅ Engaging Lifestyle Imagery
✅ Enhanced Brand Storytelling
✅ Increased Conversion Rates

Our team of experts knows just how to make your products shine, driving more sales and making your brand stand out! 🌟

Ready to take your #amazon game to the next level? 💪 Let's chat!

Visit us at https://tinyurl.com/j4eu9cta to learn more

A+ Content Services | Enhanced A+ Product Writing Services
Favicon 
tinyurl.com

A+ Content Services | Enhanced A+ Product Writing Services

Explore our enhanced Amazon A+ content writing services and showcase your products with visually engaging product pages. Connect with Team4eCom experts!