Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove filter of WP Meta SEO to no generate all images sizes on admin upload
<?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