Created
November 13, 2014 00:09
-
-
Save jbma/0ad3ba683c8e5aff6c46 to your computer and use it in GitHub Desktop.
Disable
This file contains hidden or 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 | |
add_filter( 'wp', '__deactivate_rocket_lazyload_if_product' ); | |
function __deactivate_rocket_lazyload_if_product() | |
{ | |
if( is_singular('product') ) { | |
add_filter( 'do_rocket_lazyload', '__return_false' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment