sanitize_option


sanitize_option ( $option, $value )

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

Description

Sanitizes 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, add_site_option, get_site_option, sanitize_meta

Top Google Results

User discussions

wpseek mobile