acf_update_ui_options_page_active_status()
Activates or deactivates an ACF UI options page.
Хуков нет.
Возвращает
true|false
.
Использование
acf_update_ui_options_page_active_status( $id, $activate );
- $id(int|строка) (обязательный)
- The ACF UI options page ID, key or name.
- $activate(true|false)
- True if the UI options page should be activated.
По умолчанию: true
Список изменений
С версии 6.2 | Введена. |
Код acf_update_ui_options_page_active_status() acf update ui options page active status ACF 6.4.2
function acf_update_ui_options_page_active_status( $id, $activate = true ) { return acf_update_internal_post_type_active_status( $id, $activate, 'acf-ui-options-page' ); }