woocommerce_registration_errors

woocommerce_registration_errors

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_registration_errors') is found 2 times:

  • /includes/wc-user-functions.php line 90
    		$errors = new WP_Error();
    
    		do_action( 'woocommerce_register_post', $username, $email, $errors );
    
    		$errors = apply_filters( 'woocommerce_registration_errors', $errors, $username, $email );
    
    		if ( $errors->get_error_code() ) {
    			return $errors;
    		}
    
    		$new_customer_data = apply_filters(
    
  • /src/StoreApi/Routes/V1/Checkout.php line 655
    		 * @param string $username Customer username.
    		 * @param string $user_email Customer email address.
    		 * @return \WP_Error
    		 */
    		$errors = apply_filters( 'woocommerce_registration_errors', $errors, $username, $user_email );
    
    		if ( is_wp_error( $errors ) && $errors->get_error_code() ) {
    			throw new \Exception( $errors->get_error_code() );
    		}
    
    		/**
    

Examples using woocommerce_registration_errors