Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy
Created May 17, 2014 14:38
Show Gist options
  • Save 2ndkauboy/c38a25b009f520efce50 to your computer and use it in GitHub Desktop.
Save 2ndkauboy/c38a25b009f520efce50 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Disable Full Size Image
Description: This plugin removes the "Original Size" option in the drop down when inserting an image into a post
Version: 0.1
Author: Bernhard Kau
Author URI: http://kau-boys.de
*/
function disable_full_size_image( $image_size_names ) {
unset( $image_size_names['full'] );
return $image_size_names;
}
add_filter( 'image_size_names_choose', 'disable_full_size_image' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment