Automattic\WooCommerce\Blocks\Domain\Services
CheckoutFields::contains_valid_rules
Returns true if the property is an array and not empty.
Method of the class: CheckoutFields{}
No Hooks.
Returns
true|false.
Usage
// protected - for code of main (parent) or child class $result = $this->contains_valid_rules( $property );
- $property(mixed) (required)
- The property to check.
CheckoutFields::contains_valid_rules() CheckoutFields::contains valid rules code WC 10.8.1
protected function contains_valid_rules( $property ) {
return is_array( $property ) && ! empty( $property );
}