ActionScheduler_Store::validate_sql_comparator()protectedWC 1.0

Method of the class: ActionScheduler_Store{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->validate_sql_comparator( $comparison_operator );
$comparison_operator(string) (required)
-

ActionScheduler_Store::validate_sql_comparator() code WC 9.3.3

protected function validate_sql_comparator( $comparison_operator ) {
	if ( in_array( $comparison_operator, array('!=', '>', '>=', '<', '<=', '=') ) ) {
		return $comparison_operator;
	}
	return '=';
}