Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: sanitize_title

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
2178      /**
2179       * Filters a sanitized title string.
2180       *
2181       * @since 1.2.0
2182       *
2183       * @param string $title     Sanitized title.
2184       * @param string $raw_title The title prior to sanitization.
2185       * @param string $context   The context for which the title is being sanitized.
2186       */
2187      $title = apply_filters( 'sanitize_title', $title, $raw_title, $context );
2188
2189      if ( '' === $title || false === $title ) {
2190           $title = $fallback_title;
2191      }
2192
2193      return $title;
2194 }
2195
2196 /**