Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Privacy_Exporters::get_student_data( LLMS_Student $student )

Get student data to export for a user


Parameters Parameters

$student

(LLMS_Student) (Required) Student object.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/privacy/class-llms-privacy-exporters.php

350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
private static function get_student_data( $student ) {
 
    $data = array();
 
    $props = self::get_student_data_props();
 
    foreach ( $props as $prop => $name ) {
 
        $value = apply_filters( 'llms_privacy_export_student_data_prop_value', $student->get( $prop ), $prop, $student );
 
        if ( $value ) {
            $data[] = array(
                'name'  => $name,
                'value' => $value,
            );
        }
    }
 
    return apply_filters( 'llms_privacy_export_student_data', $data, $student );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.18.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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