Recent

tptn_lazy_load_root_marginfilterPro only

tptn_lazy_load_root_margin

Filters the IntersectionObserver root margin used to trigger lazy loading.

Type: filter
Since: 4.4.0
Source: includes/pro/class-lazy-load-module.php line 234

Parameters

Type Name Description
string $root_margin A CSS margin value. Default ‘200px’.

Usage

add_filter( 'tptn_lazy_load_root_margin', function($root_margin) {
    // ...
    return $root_margin;
} );