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