LLMS_Privacy_Erasers::anonymize_prop( string $val, string $prop, obj $obj = null )
Setup anonymous values for anonymized data
Parameters Parameters
- $val
-
(string) (Required) default anonymous value ('')
- $prop
-
(string) (Required) key name of the property
- $obj
-
(obj) (Optional) related object
Default value: null
Return Return
(mixed)
Source Source
File: includes/privacy/class-llms-privacy-erasers.php
63 64 65 66 67 68 69 70 71 72 | public static function anonymize_prop( $val , $prop , $obj = null ) { switch ( $prop ) { case 'user_id' : $val = 0; break ; } return $val ; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.18.0 | Introduced. |