ACF_Admin_Internal_Post_Type_List::deleted_postpublicACF 5.0.0

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

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

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

Код ACF_Admin_Internal_Post_Type_List::deleted_post() ACF 6.4.2

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