dozent_is_completed_course_content( int $content_ID, int $user_ID )
Parameters
- $content_ID
-
(int) (Required)
- $user_ID
-
(int) (Required)
Return
(array|object|void|null) Determine if any course content has been completed by given user
Source
File: includes/core-functions.php
function dozent_is_completed_course_content($content_ID = 0, $user_ID = 0) { global $wpdb; $content_ID = dozent_get_post_id($content_ID); $user_ID = dozent_get_user_id($user_ID); $is_completed = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->dozent_completes where content_id = %d AND user_id = %d ;", [$content_ID, $user_ID]) ); return $is_completed; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |