the_author
Filters the display name of the current post's author.
Использование
add_filter( 'the_author', 'wp_kama_the_author_filter' ); /** * Function for `the_author` filter-hook. * * @param string $display_name The author's display name. * * @return string */ function wp_kama_the_author_filter( $display_name ){ // filter... return $display_name; }
- $display_name(строка)
- The author's display name.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
the_author
wp-includes/author-template.php 38
return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : '' );
Где используется хук в WordPress
wp-includes/default-filters.php 263
add_filter( 'the_author', 'ent2ncr', 8 );