WordPress at Your Fingertips
function is not described

WC_Emails::customer_detail_field_is_valid() public WC 1.0

Is customer detail field valid?

{} It's a 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.

Code of WC_Emails::customer_detail_field_is_valid() WC 5.7.1

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