single_post_title filter-hook . WP 0.71
Filters the page title for a single post.
Usage
add_filter( 'single_post_title', 'filter_function_name_397', 10, 2 ); function filter_function_name_397( $_post_title, $_post ){ // filter... return $_post_title; }
- $_post_title(string)
- The single post page title.
- $_post(object)
- The current queried object as returned by get_queried_object().
Where the hook is called
single_post_title
wp-includes/general-template.php 1261
$title = apply_filters( 'single_post_title', $_post->post_title, $_post );
Where the hook is used (in WP core)
wp-includes/default-filters.php 135
add_filter( $filter, 'wptexturize' );
wp-includes/default-filters.php 136
add_filter( $filter, 'strip_tags' );