Created
November 19, 2018 10:36
-
-
Save vmanthos/fc8cfc5151f3ce2a170a9ca0f62e6a1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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’ 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