acf_get_local_store()
acf_get_local_store
Returns either local store or a dummy store for the given name.
Хуков нет.
Возвращает
ACF_Data
.
Использование
acf_get_local_store( $name );
- $name(строка)
- The store name (fields|groups).
По умолчанию: ''
Список изменений
С версии 5.7.10 | Введена. |
Код acf_get_local_store() acf get local store ACF 6.0.4
function acf_get_local_store( $name = '' ) { // Check if enabled. if ( acf_is_local_enabled() ) { return acf_get_store( "local-$name" ); // Return dummy store if not enabled. } else { return acf_get_store( 'local-empty' ); } }