woocommerce_process_registration_errors

woocommerce_process_registration_errors

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_process_registration_errors') is found 1 times:

  • /includes/class-wc-form-handler.php line 1107
    			$email    = wp_unslash( $_POST['email'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    
    			try {
    				$validation_error  = new WP_Error();
    				$validation_error  = apply_filters( 'woocommerce_process_registration_errors', $validation_error, $username, $password, $email );
    				$validation_errors = $validation_error->get_error_messages();
    
    				if ( 1 === count( $validation_errors ) ) {
    					throw new Exception( $validation_error->get_error_message() );
    				} elseif ( $validation_errors ) {
    					foreach ( $validation_errors as $message ) {