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_Erasers::erase_student_data( LLMS_Student $student )
Erase student data
Parameters Parameters
- $student
-
(LLMS_Student) (Required)
Return Return
(array)
Source Source
File: includes/privacy/class-llms-privacy-erasers.php
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | private static function erase_student_data( $student ) { $messages = array (); $props = parent::get_student_data_props(); foreach ( $props as $prop => $name ) { $erased = false; $val = $student ->get( $prop ); if ( $val ) { $student ->set( $prop , '' ); $erased = true; } if ( apply_filters( 'llms_privacy_erase_student_data_prop' , $erased , $prop , $student ) ) { /* Translators: %s Prop name. */ $messages [] = sprintf( __( 'Removed student "%s"' , 'lifterlms' ), $name ); } } return apply_filters( 'llms_privacy_erase_student_data' , $messages , $student ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.18.0 | Introduced. |