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
3293
3294      /**
3295       * Filter an option value following sanitization.
3296       *
3297       * @since 2.3.0
3298       *
3299       * @param string $value  The sanitized option value.
3300       * @param string $option The option name.
3301       */
3302      $value = apply_filters( "sanitize_option_{$option}", $value, $option );
3303
3304      return $value;
3305 }
3306
3307 /**
3308  * Parses a string into variables to be stored in an array.
3309  *
3310  * Uses {@link http://www.php.net/parse_str parse_str()} and stripslashes if
3311  * {@link http://www.php.net/magic_quotes magic_quotes_gpc} is on.