Filter hook 'the_modified_author'

in WP Core File wp-includes/author-template.php at line 105

View Source

the_modified_author

Filter Hook
Description
Filters the display name of the author who last edited the current post.

Hook Information

File Location wp-includes/author-template.php View on GitHub
Hook Type Filter
Line Number 105

Hook Parameters

Type Name Description
string $display_name The author's display name, empty string if unknown.

Usage Examples

Basic Usage
<?php
// Hook into the_modified_author
add_filter('the_modified_author', 'my_custom_filter', 10, 1);

function my_custom_filter($display_name) {
    // Your custom filtering logic here
    return $display_name;
}

Source Code Context

wp-includes/author-template.php:105 - How this hook is used in WordPress core
<?php
 100  		 *
 101  		 * @since 2.8.0
 102  		 *
 103  		 * @param string $display_name The author's display name, empty string if unknown.
 104  		 */
 105  		return apply_filters( 'the_modified_author', $last_user ? $last_user->display_name : '' );
 106  	}
 107  }
 108  
 109  /**
 110   * Displays the name of the author who last edited the current post,

PHP Documentation

<?php
/**
		 * Filters the display name of the author who last edited the current post.
		 *
		 * @since 2.8.0
		 *
		 * @param string $display_name The author's display name, empty string if unknown.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/author-template.php
Related Hooks

Related hooks will be displayed here in future updates.