Skip to content

Instantly share code, notes, and snippets.

@blogjunkie
Created November 11, 2021 12:12
Show Gist options
  • Save blogjunkie/8e2abe129473477ef3e462ecdf545ae5 to your computer and use it in GitHub Desktop.
Save blogjunkie/8e2abe129473477ef3e462ecdf545ae5 to your computer and use it in GitHub Desktop.
Disable PowerPack outputting data-no-lazy in Content Grid module
<?php // don't copy this line
add_filter( 'pp_post_image_settings_data', function( $data, $settings ) {
if ( isset( $data['attributes'] ) && isset( $data['attributes']['data-no-lazy'] ) ) {
unset( $data['attributes']['data-no-lazy'] );
}
return $data;
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment