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


Top ↑

Return Return

(mixed)


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;
				break;
		}

		return $val;
	}

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.