Skip to content

Instantly share code, notes, and snippets.

@eri-trabiccolo
Created February 3, 2016 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eri-trabiccolo/02c3ed936c7e4469caf3 to your computer and use it in GitHub Desktop.
Save eri-trabiccolo/02c3ed936c7e4469caf3 to your computer and use it in GitHub Desktop.
Customizr: smartload enabled in one specific page
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