the_author filter-hook . WP 2.9.0
Filters the display name of the current post's author.
Usage
add_filter( 'the_author', 'filter_function_name_6238' ); function filter_function_name_6238( $display_name ){ // filter... return $display_name; }
- $display_name(string/null)
- The author's display name.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
the_author
wp-includes/author-template.php 37
return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : null );
Where in WP core the hook is used WordPress
wp-includes/author-template.php 228
add_filter( 'the_author', 'ent2ncr', 8 );