Skip to content

Instantly share code, notes, and snippets.

@jbma
Last active January 15, 2018 15:31
Show Gist options
  • Save jbma/85748460c52b193cf0c8b286839a883d to your computer and use it in GitHub Desktop.
Save jbma/85748460c52b193cf0c8b286839a883d to your computer and use it in GitHub Desktop.
<?php
function __imagify_exclude($attachment_id){
if (in_array(23, 34,439)){
return false;
}
return true;
}
add_filter( 'imagify_auto_optimize_attachment', '__imagify_exclude' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment