Created
August 19, 2016 13:38
-
-
Save asadowski10/31ece7a6b9bd644f05506e43a3420d56 to your computer and use it in GitHub Desktop.
Remove filter of WP Meta SEO to no generate all images sizes on admin upload
This file contains hidden or 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 | |
if ( is_admin() && class_exists( 'MetaSeo_Image_List_Table' ) ) { | |
remove_filter( 'image_size_names_choose', array( | |
'MetaSeo_Image_List_Table', | |
'add_more_attachment_sizes_choose' | |
), 10, 1 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment