woocommerce_registration_errors

woocommerce_registration_errors

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_registration_errors') is found 1 times:

  • /includes/wc-user-functions.php line 133
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    * @param string $username Customer username.
     * @param string $user_email Customer email address.
     * @return \WP_Error
     */
    $errors = apply_filters( 'woocommerce_registration_errors', $errors, $username, $email );
     
    if ( is_wp_error( $errors ) && $errors->get_error_code() ) {
        return $errors;
    }
     
    // Merged passed args with sanitized username, email, and password.

Examples using woocommerce_registration_errors