wp_post_revision_title_expanded
Filters the formatted author and date for a revision.
Использование
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(строка)
- 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().
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
wp_post_revision_title_expanded
wp-includes/post-template.php 1968
return apply_filters( 'wp_post_revision_title_expanded', $revision_date_author, $revision, $link );