Skip to content

Instantly share code, notes, and snippets.

@bjork
Created April 26, 2015 10:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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