sanitize_option


sanitize_option ( $option, $value )

Parameters:
  • (string) $option The name of the option.
  • (string) $value The unsanitised value.
Returns:
  • (string) Sanitized value.
Defined at:

Description

Sanitises various option values based on the nature of the option.

This is basically a switch statement which will pass $value through a number of functions depending on the $option.

Related Functions

sanitize_post, sanitize_title, get_site_option, add_site_option, sanitize_term

Top Google Results

User discussions

wpseek mobile