ACF_Location::get_operatorspublic staticACF 5.9.0

Returns an array of operators for this location.

Method of the class: ACF_Location{}

No Hooks.

Returns

Array.

Usage

$result = ACF_Location::get_operators( $rule );
$rule(array) (required)
A location rule.

Changelog

Since 5.9.0 Introduced.

ACF_Location::get_operators() code ACF 6.0.4

public static function get_operators( $rule ) {
	return array(
		'==' => __( 'is equal to', 'acf' ),
		'!=' => __( 'is not equal to', 'acf' ),
	);
}