helpful/logs/post_author

This filter determines how the post authors are output in the export file. By default, the string is constructed as follows: display_name (ID)

/**
 * @param string $post_author Author of the post.
 * @param int $author_id ID of the post author.
 * @return string
 */
add_filter('helpful/logs/post_author', function(string $post_author, int $author_id) {
    return $post_author;
}, 10, 2);

Was this post helpful?

Top