crp_lazy_load_root_margin
Filter the root margin used by the IntersectionObserver when lazy loading.
Type: filter
Since: 4.3.0
Source: includes/pro/class-lazy-load-module.php line 331
Parameters
| Type | Name | Description |
|---|---|---|
string |
$root_margin |
Root margin. Default ‘200px’. |
Usage
add_filter( 'crp_lazy_load_root_margin', function($root_margin) {
// ...
return $root_margin;
} );