Skip to content

Instantly share code, notes, and snippets.

@vmanthos
Created November 19, 2018 10:36
Show Gist options
  • Save vmanthos/fc8cfc5151f3ce2a170a9ca0f62e6a1a to your computer and use it in GitHub Desktop.
Save vmanthos/fc8cfc5151f3ce2a170a9ca0f62e6a1a to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: WP Rocket | Enable Lazy Load for the Genesis Framework
* Description: This mu-plugin is for enabling Lazy Load for the Genesis Framework
* Author: Vasilis Manthos
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
// Basic security, prevents file from being loaded directly.
defined( 'ABSPATH' ) or die( 'Cheatin&#8217; uh?' );
/**
* Hook the rocket_lazyload_images to the respective Genesis image filter
*/
add_filter( 'genesis_get_image', 'rocket_lazyload_images', PHP_INT_MAX );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment