ACF_Admin_Internal_Post_Type_List::untrashed_post
Fires when untrashing an internal post type.
Метод класса: ACF_Admin_Internal_Post_Type_List{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ACF_Admin_Internal_Post_Type_List = new ACF_Admin_Internal_Post_Type_List(); $ACF_Admin_Internal_Post_Type_List->untrashed_post( $post_id );
- $post_id(int) (обязательный)
- The post ID.
Список изменений
| С версии 5.0.0 | Введена. |
Код ACF_Admin_Internal_Post_Type_List::untrashed_post() ACF Admin Internal Post Type List::untrashed post ACF 6.4.2
public function untrashed_post( $post_id ) {
if ( get_post_type( $post_id ) === $this->post_type ) {
acf_untrash_internal_post_type( $post_id, $this->post_type );
}
}