wp_post_revision_title_expanded

Filters the formatted author and date for a revision.

Description

apply_filters( 'wp_post_revision_title_expanded', (string) $revision_date_author, (WP_Post) $revision, (bool) $link ); 

Parameters (3)

0. $revision_date_author (string)
The revision date author.
1. $revision (WP_Post)
The revision object.
2. $link (bool)
Whether to link to the revisions page, as passed into wp_post_revision_title_expanded().

Usage

To run the hook, copy the example below.
  1. $revision_date_author = apply_filters( 'wp_post_revision_title_expanded', $revision_date_author, $revision, $link ); 
  2.  
  3. if ( !empty( $revision_date_author ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wp_post_revision_title_expanded callback 
  2. function filter_wp_post_revision_title_expanded( $revision_date_author, $revision, $link ) { 
  3. // make filter magic happen here... 
  4. return $revision_date_author
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wp_post_revision_title_expanded', 'filter_wp_post_revision_title_expanded', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wp_post_revision_title_expanded', 'filter_wp_post_revision_title_expanded', 10, 3 ); 

Defined (1)

The filter is defined in the following location(s).

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