Last active
July 16, 2020 05:40
-
-
Save cliffordp/4efbd9219f427f78b5f2e6101700935f to your computer and use it in GitHub Desktop.
Disable Divi custom image sizes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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