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
2.6.5 Introduced.