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_Person_Handler::sanitize_field( string $val, string $field_type = '' )

Sanitize posted fields


Description Description


Parameters Parameters

$val

(string) (Required) unsanitized user data

$field_type

(string) (Optional) field type, allows additional sanitization to run based on field type

Default value: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class.llms.person.handler.php

	private static function sanitize_field( $val, $field_type = '' ) {

		$val = trim( sanitize_text_field( $val ) );
		if ( $field_type && 'email' === $field_type ) {
			$val = wp_unslash( $val );
		}

		return $val;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.19.4 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.