Skip to content

Instantly share code, notes, and snippets.

@JulioPotier
Created November 9, 2015 13:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save JulioPotier/516294870ac38028fcce to your computer and use it in GitHub Desktop.
<?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