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
1196      /**
1197       * Filter a sanitized title string.
1198       *
1199       * @since 1.2.0
1200       *
1201       * @param string $title     Sanitized title.
1202       * @param string $raw_title The title prior to sanitization.
1203       * @param string $context   The context for which the title is being sanitized.
1204       */
1205      $title = apply_filters( 'sanitize_title', $title, $raw_title, $context );
1206
1207      if ( '' === $title || false === $title )
1208           $title = $fallback_title;
1209
1210      return $title;
1211 }
1212
1213 /**
1214  * Sanitizes a title with the 'query' context.