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