Skip to content

Instantly share code, notes, and snippets.



Last active Jul 16, 2020
What would you like to do?
Disable Divi custom image sizes
* 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 did work.
* @link 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