wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_the_title_rss › WordPress Function

Depuis2.0.0
Dépréciéen/a
get_the_title_rss ( $post = 0 )
Paramètres:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post.
    Requis: Non
    Défaut:
Retourne:
  • (string) Current post title.
Défini(e) dans:
Codex:
Changelog:
  • 6.6.0

Retrieves the current post title for the feed.



Source

function get_the_title_rss( $post = 0 ) {
	$title = get_the_title( $post );

	/**
	 * Filters the post title for use in a feed.
	 *
	 * @since 1.2.0
	 *
	 * @param string $title The current post title.
	 */
	return apply_filters( 'the_title_rss', $title );
}