Recent

wzpa_display_top_posts_by_author function

wzpa_display_top_posts_by_author()

Display top posts for a specific author.

Since: 1.3.0
Source: includes/functions.php line 107

Signature

function wzpa_display_top_posts_by_author( $author, $field = ..., $args = ..., $echo_value = ... ): string|void;

Parameters

TypeNameDescription
int|string$authorAuthor value for $field. A user ID, slug, email address, or login name.
string$fieldField to query by: ‘id’, ‘ID’, ‘slug’, ‘email’, or ‘login’.
array$argsOptional. Arguments. Default empty array.
bool$echo_valueOptional. Whether to echo or return the output. Default true.

Returns

string|void — HTML output if $echo is false, void otherwise.