Created
February 3, 2016 08:00
-
-
Save eri-trabiccolo/02c3ed936c7e4469caf3 to your computer and use it in GitHub Desktop.
Customizr: smartload enabled in one specific page
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
add_filter('tc_opt_tc_img_smart_load', 'smartload_in_one_page'); | |
function smartload_in_one_page() { | |
//is_page parameter : Page ID, title, slug, or array of such | |
return is_page('A') ? true : false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment