Created
February 7, 2018 11:33
-
-
Save bewho/a6676515b16da264a3fdde05e8474d2e to your computer and use it in GitHub Desktop.
This file contains hidden or 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