wp_post_revision_title_expanded filter-hookWP 4.4.0

Filters the formatted author and date for a revision.

Usage

add_filter( 'wp_post_revision_title_expanded', 'wp_kama_post_revision_title_expanded_filter', 10, 3 );

/**
 * Function for `wp_post_revision_title_expanded` filter-hook.
 * 
 * @param string  $revision_date_author The formatted string.
 * @param WP_Post $revision             The revision object.
 * @param bool    $link                 Whether to link to the revisions page, as passed into wp_post_revision_title_expanded().
 *
 * @return string
 */
function wp_kama_post_revision_title_expanded_filter( $revision_date_author, $revision, $link ){

	// filter...
	return $revision_date_author;
}
$revision_date_author(string)
The formatted string.
$revision(WP_Post)
The revision object.
$link(true|false)
Whether to link to the revisions page, as passed into wp_post_revision_title_expanded().

Changelog

Since 4.4.0 Introduced.

Where the hook is called

wp_post_revision_title_expanded()
wp_post_revision_title_expanded
wp-includes/post-template.php 1963
return apply_filters( 'wp_post_revision_title_expanded', $revision_date_author, $revision, $link );

Where the hook is used in WordPress

Usage not found.