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.
Return Return
(array)
Source Source
File: includes/privacy/class-llms-privacy-exporters.php
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.18.0 | Introduced. |