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