Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: sanitize_option_{$option}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3726       * Filter an option value following sanitization.
3727       *
3728       * @since 2.3.0
3729       * @since 4.3.0 Added the `$original_value` parameter.
3730       *
3731       * @param string $value          The sanitized option value.
3732       * @param string $option         The option name.
3733       * @param string $original_value The original value passed to the function.
3734       */
3735      return apply_filters( "sanitize_option_{$option}", $value, $option, $original_value );
3736 }
3737
3738 /**
3739  * Parses a string into variables to be stored in an array.
3740  *
3741  * Uses {@link http://www.php.net/parse_str parse_str()} and stripslashes if
3742  * {@link http://www.php.net/magic_quotes magic_quotes_gpc} is on.
3743  *
3744  * @since 2.2.1