tptn_pre_pop_posts
Pre-filter the popular posts output.
Return a non-null value to short-circuit the default rendering, e.g. to replace it with a lazy load placeholder. Runs for all display methods.
Type: filter
Since: 4.4.0
Source: includes/frontend/class-display.php line 114
Parameters
| Type | Name | Description |
|---|---|---|
string|null | $pre | Pre-rendered output. Default null. |
array | $args | Fully parsed arguments array. |
\WP_Post|null | $post | Current post object. |
Usage
add_filter( 'tptn_pre_pop_posts', function($pre, $args, $post) {
// ...
return $pre;
} );