LLMS_Privacy_Erasers::anonymize_prop( string $val, string $prop, obj $obj = null )

Setup anonymous values for anonymized data

Parameters Parameters


(string) (Required) default anonymous value ('')


(string) (Required) key name of the property


(obj) (Optional) related object

Default value: null

Top ↑

Return Return


Top ↑

Source Source

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

	public static function anonymize_prop( $val, $prop, $obj = null ) {

		switch ( $prop ) {
			case 'user_id':
				$val = 0;

		return $val;

Top ↑

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.