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
| Type | Name | Description |
|---|---|---|
int|string |
$author |
Author value for $field. A user ID, slug, email address, or login name. |
string |
$field |
Field to query by: ‘id’, ‘ID’, ‘slug’, ‘email’, or ‘login’. |
array |
$args |
Optional. Arguments. Default empty array. |
bool |
$echo_value |
Optional. Whether to echo or return the output. Default true. |
Returns
string|void — HTML output if $echo is false, void otherwise.