woocommerce_process_myaccount_field_

woocommerce_process_myaccount_field_

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_process_myaccount_field_') is found 1 times:

  • /includes/class-wc-form-handler.php line 127
    				$value = isset( $_POST[ $key ] ) ? wc_clean( wp_unslash( $_POST[ $key ] ) ) : '';
    			}
    
    			// Hook to allow modification of value.
    			$value = apply_filters( 'woocommerce_process_myaccount_field_' . $key, $value );
    
    			// Validation: Required fields.
    			if ( ! empty( $field['required'] ) && empty( $value ) ) {
    				/* translators: %s: Field name. */
    				wc_add_notice( sprintf( __( '%s is a required field.', 'woocommerce' ), $field['label'] ), 'error', array( 'id' => $key ) );
    			}