Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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 );
Source by wplms.io #
 
PREVIOUS NEXT
Tagged: #function #find #total #number #students #wplms
ADD COMMENT
Topic
Name
3+7 =