Automator_Helpers_Recipe_Field::supports_custom_value( $args )


Parameters Parameters

$args

(Required)


Top ↑

Return Return

(bool)


Source Source

File: src/core/lib/helpers/class-automator-recipe-helpers-field.php

	public function supports_custom_value( $args ) {
		if ( ! key_exists( 'supports_custom_value', $args ) ) {
			return apply_filters( 'automator_supports_custom_value', true, $args );
		}
		if ( null === $args['supports_custom_value'] ) {
			return apply_filters( 'automator_supports_custom_value', true, $args );
		}
		return apply_filters( 'automator_supports_custom_value', boolval( $args['supports_custom_value'] ), $args );
	}