acf_remove_local_internal_post_type()
Removes a local ACF post with the given key and post type.
Хуков нет.
Возвращает
true|false.
Использование
acf_remove_local_internal_post_type( $key, $post_type );
- $key(строка)
- The ACF key.
По умолчанию:'' - $post_type(строка)
- The ACF post type.
По умолчанию:'acf-field-group'
Список изменений
| С версии 6.1 | Введена. |
Код acf_remove_local_internal_post_type() acf remove local internal post type ACF 6.4.2
function acf_remove_local_internal_post_type( $key = '', $post_type = 'acf-field-group' ) {
return acf_get_local_store( '', $post_type )->remove( $key );
}