WC_Emails::customer_detail_field_is_valid()publicWC 1.0

Is customer detail field valid?

Method of the class: WC_Emails{}

No Hooks.

Return

true|false.

Usage

$WC_Emails = new WC_Emails();
$WC_Emails->customer_detail_field_is_valid( $field );
$field(array) (required)
Field data to check if is valid.

WC_Emails::customer_detail_field_is_valid() code WC 9.4.2

public function customer_detail_field_is_valid( $field ) {
	return isset( $field['label'] ) && ! empty( $field['value'] );
}