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