wppaste
WordPress

apply_filters( 'single_post_title', string $_post_title, WP_Post $_post )

Since
0.71
Filters the page title for a single post.

Compatibility

WordPress
since 0.71
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$_post_titlestring
The single post page title.
$_postWP_Post
The current post.

Where this hook fires · 1

  • wp-includes/general-template.php:1499single_post_title()

Source code

	 *	 * @since 0.71	 *	 * @param string  $_post_title The single post page title.	 * @param WP_Post $_post       The current post.	 */	$title = apply_filters( 'single_post_title', $_post->post_title, $_post );	if ( $display ) {		echo $prefix . $title;	} else {		return $prefix . $title;	}}

Changelog

Introduced in 0.71. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.