function block_blogspot_username($user_login, $user_email, $errors) { // Check if the username contains "blogspot" if (strpos($user_login, 'blogspot') !== false) { $errors->add('blogspot_error', 'Registrations with blogspot in the username are not allowed.'); } } add_action('user_profile_update_errors', 'block_blogspot_username', 10, 3); add_action('woocommerce_registration_errors', 'block_blogspot_username', 10, 3); {"id":3388,"date":"2020-06-17T22:34:25","date_gmt":"2020-06-17T18:34:25","guid":{"rendered":"https:\/\/essentials.pixfort.com\/restaurant\/?page_id=3388"},"modified":"2023-05-11T10:04:09","modified_gmt":"2023-05-11T06:04:09","slug":"home","status":"publish","type":"page","link":"https:\/\/castelkitchen.com\/","title":{"rendered":"Home"},"content":{"rendered":"\t\t