Created
May 17, 2014 14:38
-
-
Save 2ndkauboy/c38a25b009f520efce50 to your computer and use it in GitHub Desktop.
This file contains 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 | |
/* | |
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