sanitize_option
sanitize_option ( $option, $value )
Parameters:- (string) option The name of the option.
- (mixed) value The unsanitized value.
Returns:Defined at: - Introduced in WordPress: 2.0.5
- Deprecated in WordPress: —
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.