the_author хук-фильтр . WP 2.9.0
Filters the display name of the current post's author.
Использование
add_filter( 'the_author', 'filter_function_name_155' ); function filter_function_name_155( $display_name ){ // filter... return $display_name; }
- $display_name(строка/null)
- The author's display name.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
the_author
wp-includes/author-template.php 37
return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : null );
Где используется хук в ядре WordPress
wp-includes/author-template.php 228
add_filter( 'the_author', 'ent2ncr', 8 );