CourseBuilder::delete_course_content()
Delete course content
Source
File: classes/CourseBuilder.php
public function delete_course_content() { global $wpdb; $post_id = (int) dozent_input_text( 'item_id' ); do_action( 'dozent/delete_course_content/before', $post_id ); wp_delete_post( $post_id, true ); $wpdb->delete( $wpdb->postmeta, [ 'post_id' => $post_id ] ); do_action( 'dozent/delete_course_content/after', $post_id ); }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |