Advertisement
swte

Exclude Lazyload Images on specific URL

Mar 24th, 2020
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. add_filter('swift_performance_option_lazy-load-images', function($value){
  2.     if(isset($_SERVER['REQUEST_URI']) && preg_match('~^/?excluded-page-url/?$~',$_SERVER['REQUEST_URI'])){
  3.         return 0;
  4.     }
  5.     return $value;
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement