crp_lazy_load
Filter whether the related posts should be lazy loaded.
Type: filter
Since: 4.3.0
Source: includes/pro/class-lazy-load-module.php line 154
Parameters
| Type | Name | Description |
|---|---|---|
bool |
$lazy_load |
Whether to lazy load the related posts. |
\WP_Post|null |
$post |
Current post object. |
array |
$args |
Arguments array. |
Usage
add_filter( 'crp_lazy_load', function($lazy_load, $post, $args) {
// ...
return $lazy_load;
} );