acf_pro_is_legacy_multisite()
Checks if the current license allows the legacy multisite behavior if we're on a multisite install.
Хуков нет.
Возвращает
true|false. True if legacy multisite, false if not.
Использование
acf_pro_is_legacy_multisite( $status );
- $status(массив)
- Optional license status array.
По умолчанию:array()
Список изменений
| С версии 6.2.6 | Введена. |
Код acf_pro_is_legacy_multisite() acf pro is legacy multisite ACF 6.4.2
function acf_pro_is_legacy_multisite( array $status = array() ) {
if ( ! is_multisite() ) {
return false;
}
if ( empty( $status ) ) {
$status = get_blog_option( get_main_site_id(), 'acf_pro_license_status', array() );
}
if ( ! is_array( $status ) || ! isset( $status['legacy_multisite'] ) ) {
return false;
}
return $status['legacy_multisite'] === true;
}