ACF_Admin_Field_Groups::untrashed_post
Fires when untrashing a field group.
Метод класса: ACF_Admin_Field_Groups{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ACF_Admin_Field_Groups = new ACF_Admin_Field_Groups(); $ACF_Admin_Field_Groups->untrashed_post( $post_id );
- $post_id(int) (обязательный)
- The post ID.
Список изменений
| С версии 5.0.0 | Введена. |
Код ACF_Admin_Field_Groups::untrashed_post() ACF Admin Field Groups::untrashed post ACF 6.4.2
public function untrashed_post( $post_id ) {
if ( get_post_type( $post_id ) === $this->post_type ) {
acf_untrash_field_group( $post_id );
}
}