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":2,"count":0,"description":"","link":"https:\/\/castelkitchen.com\/category\/articles\/","name":"Articles","slug":"articles","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"https:\/\/castelkitchen.com\/wp-json\/wp\/v2\/categories\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/castelkitchen.com\/wp-json\/wp\/v2\/categories"}],"about":[{"href":"https:\/\/castelkitchen.com\/wp-json\/wp\/v2\/taxonomies\/category"}],"wp:post_type":[{"href":"https:\/\/castelkitchen.com\/wp-json\/wp\/v2\/posts?categories=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}