acf_untrash_post_type()
Restores an ACF post type from the trash.
Хуков нет.
Возвращает
true|false
. True if post was untrashed.
Использование
acf_untrash_post_type( $id );
- $id(int|строка)
- The post type ID, key, or name.
Список изменений
С версии 6.1 | Введена. |
Код acf_untrash_post_type() acf untrash post type ACF 6.4.2
function acf_untrash_post_type( $id = 0 ) { return acf_untrash_internal_post_type( $id, 'acf-post-type' ); }