Create a gist now

Instantly share code, notes, and snippets.

Prevent users from using full size images on WordPress
/*
How to prevent users from using full size images by removing
the full image size option from WordPress image dialog.
*/
function h1_remove_full_image_size( $sizes ) {
unset( $sizes['full'] );
return $sizes;
}
add_filter( 'image_size_names_choose',
'h1_remove_full_image_size' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment