friends_override_author_name - akirk/friends GitHub Wiki

This template contains the HTML for the New Friend Post notification e-mail.

Auto-generated Example

add_filter(
   'friends_override_author_name',
    function(
        string $override_author_name,
        string $author_name,
        int $post_id
    ) {
        // Your code here.
        return $override_author_name;
    },
    10,
    3
);

Parameters

  • string $override_author_name The author name to override with.
  • string $author_name The author name.
  • int $post_id The post ID.

Files

apply_filters( 'friends_override_author_name', '', $author_name, $block->context['postId'] )
apply_filters( 'friends_override_author_name', '', $author_name, get_the_id() )
apply_filters( 'friends_override_author_name', '', $author_name, get_the_id() )
apply_filters( 'friends_override_author_name', '', $args['author']->display_name, $args['post']->ID )
apply_filters( 'friends_override_author_name', '', $args['author']->display_name, $args['post']->ID )
apply_filters( 'friends_override_author_name', '', $author_name, $_post->ID )

← All Hooks