Skip to content

friends_override_author_name

Alex Kirk edited this page Jan 5, 2023 · 18 revisions

Allows overriding the authorname for a post. * * Example:

add_filter( 'friends_override_author_name', function( $override_author_name, $author_name, $post_id ) {
    return get_post_meta( $post_id, 'author', true );
}

Parameters

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

Files

Hooks

Clone this wiki locally