woocommerce_process_registration_errors

woocommerce_process_registration_errors

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_process_registration_errors') is found 1 times:

  • /includes/class-wc-form-handler.php line 1136
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    $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 ) {