ACF\Meta
MetaLocation::register
Registers the meta location with ACF, so it can be used by various CRUD helper functions.
Метод класса: MetaLocation{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$MetaLocation = new MetaLocation(); $MetaLocation->register();
Список изменений
С версии 6.4 | Введена. |
Код MetaLocation::register() MetaLocation::register ACF 6.4.2
public function register() { if ( empty( $this->location_type ) ) { return; } $store = acf_get_store( 'acf-meta-locations' ); if ( ! $store ) { $store = acf_register_store( 'acf-meta-locations' ); } $store->set( $this->location_type, get_class( $this ) ); }