Answers for "function to find total number of students in wplms"

PHP
0

function to find total number of students in wplms

global $wpdb;
$query = $wpdb->prepare( "SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = %d AND meta_value > UNIX_TIMESTAMP( NOW() )", $course_id );
return $wpdb->get_col( $query );
Posted by: Guest on October-26-2020

Code answers related to "function to find total number of students in wplms"

Browse Popular Code Answers by Language