sanitize_option ( $option, $value )
- (string) $option The name of the option.
- (string) $value The unsanitised value.
- (string) Sanitized value.
- Introduced in WordPress: 2.0.5
- Deprecated in WordPress: —
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.