_sanitize_text_fields


_sanitize_text_fields ( $str, $keep_newlines = false )

Access:
  • private
Parameters:
  • (string) $str String to sanitize.
  • (bool) $keep_newlines optional Whether to keep newlines. Default: false.
Returns:
  • (string) Sanitized string.
Defined at:

Description

Internal helper function to sanitize a string from user input or from the db

Related Functions

sanitize_text_field, sanitize_textarea_field, sanitize_term_field, sanitize_post_field, sanitize_user_field

Top Google Results

User discussions

wpseek mobile