ACF_Location_Post_Type::get_object_subtype()publicACF 5.9.0

Returns the object_subtype connected to this location.

Метод класса: ACF_Location_Post_Type{}

Хуков нет.

Возвращает

Строку|Массив.

Использование

$ACF_Location_Post_Type = new ACF_Location_Post_Type();
$ACF_Location_Post_Type->get_object_subtype( $rule );
$rule(массив) (обязательный)
A location rule.

Список изменений

С версии 5.9.0 Введена.

Код ACF_Location_Post_Type::get_object_subtype() ACF 6.0.4

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