This is a WordPress 🔌 plugin that loads your post thumbnail after your page loads.
PHP > 5.3, since we use namespacing.
- Download repo
- Move file to your
wp-content/plugins
directory - Activate plugin via wp-cli or the WordPress dashboard
I built this plugin for the 2017 Orange County WordCamp plugin contest, so I won't be actively maintaining this project.
Remove functionality on ALL post thumbnails:
add_filter( 'Progressive_Images\enabled', function( $post_thumbnail_id ) {
return false;
}, 10, 1 );
Remove functionality on a specific post thumbnail:
add_filter( 'Progressive_Images\enabled', function( $post_thumbnail_id ) {
if ( 1234 !== $post_thumbnail_id ) {
return true;
}
return false;
}, 10, 1 );
Add a class to the wrapping markup on post_thumbnails
add_filter( 'Progressive_Images\markup_wrapper_class', function( $class ) {
$class .= ' your-awesome-class';
return $class;
}, 10, 3);