Browse: Home / Classes / Learndash_Admin_Questions_Listing /

Learndash_Admin_Questions_Listing::before_delete_post

Learndash_Admin_Questions_Listing::before_delete_post( integer $post_id )

Initial hook for deleting a post.


Description #

For the Questions post type we want to also remove the ProQuiz Question. So we grab the reference from the post meta for ‘question_pro_id’.


Parameters #

$post_id

(integer) (Required) $Post ID to be deleted.


Source #

File: includes/admin/classes-posts-listings/class-learndash-admin-questions-listing.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.