Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
/**
* Plugin Name: Disable Thumbnails Embeds
* Description: Don't like the thumbnails embed?
* Version: 1.0
* Author: Julio Potier
* Author URI: https://wp-rocket.me
* License: GPLv2+
*
*/
add_filter( 'embed_thumbnail_image_shape', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment