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: ''
Return Return
(string)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.19.4 | Introduced. |