ACF_Location_Taxonomy::get_object_subtypepublicACF 5.9.0

Returns the object_subtype connected to this location.

Method of the class: ACF_Location_Taxonomy{}

No Hooks.

Returns

String|Array.

Usage

$ACF_Location_Taxonomy = new ACF_Location_Taxonomy();
$ACF_Location_Taxonomy->get_object_subtype( $rule );
$rule(array) (required)
A location rule.

Changelog

Since 5.9.0 Introduced.

ACF_Location_Taxonomy::get_object_subtype() code ACF 6.0.4

function get_object_subtype( $rule ) {
	if ( $rule['operator'] === '==' ) {
		return $rule['value'];
	}
	return '';
}