Skip to content

Instantly share code, notes, and snippets.

@cliffordp

cliffordp/functions.php

Last active Jul 16, 2020
Embed
What would you like to do?
Disable Divi custom image sizes
<?php
/**
* Disable Divi's custom media image sizes, as added via /wp-content/themes/Divi/post_thumbnails_divi.php
*
* DOES NOT WORK as of July 2020, but https://wordpress.org/plugins/image-sizes/ did work.
*
* @link https://gist.github.com/cliffordp/4efbd9219f427f78b5f2e6101700935f This snippet.
*
* @see __return_empty_array()
*/
add_filter( 'et_theme_image_sizes', '__return_empty_array', 50 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.