Skip to content

Instantly share code, notes, and snippets.

@bewho
Created February 7, 2018 11:33
Show Gist options
  • Save bewho/a6676515b16da264a3fdde05e8474d2e to your computer and use it in GitHub Desktop.
Save bewho/a6676515b16da264a3fdde05e8474d2e 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