LLMS_Student::is_active()

Determine if the student is active in at least one course or membership


Return Return

(boolean)


Top ↑

Source Source

File: includes/models/model.llms.student.php

1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
     */
    return apply_filters( 'llms_student_get_progress', $ret, $object_id, $type, $this->get_id() );
 
}
 
/**
 * Retrieve the student's original registration date in the chosen format.
 *
 * @since Unknown
 * @since 5.2.0 Changed the date to be relative to the local time zone.
 *
 * @param string $format Any date format that can be passed to date().
 * @return string
 */
public function get_registration_date( $format = '' ) {
 
    if ( ! $format ) {
        $format = get_option( 'date_format' );
    }
 
    return wp_date( $format, strtotime( $this->get( 'user_registered' ) ) );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.14.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.