ACF_Admin_Internal_Post_Type_List::trashed_postpublicACF 5.0.0

Fires when trashing 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->trashed_post( $post_id );
$post_id(int) (обязательный)
The post ID.

Список изменений

С версии 5.0.0 Введена.

Код ACF_Admin_Internal_Post_Type_List::trashed_post() ACF 6.4.2

public function trashed_post( $post_id ) {
	if ( get_post_type( $post_id ) === $this->post_type ) {
		acf_trash_internal_post_type( $post_id, $this->post_type );
	}
}