Recent

wzpa_custom_template filter

wzpa_custom_template

Filter to create a custom HTML output for a set of Popular Authors.

Type: filter
Since: 1.2.0
Source: includes/frontend/class-display.php line 105

Parameters

TypeNameDescription
mixed$custom_templateCustom template. Default value null.
object$authorsArray of popular author IDs.
array$argsArray of settings.
array$post_countsArray of post counts for each author.

Usage

add_filter( 'wzpa_custom_template', function($custom_template, $authors, $args, $post_counts) {
    // ...
    return $custom_template;
} );