$m) { if($m[0]) { $i = explode(" <", $m[0]); if(in_array($i[0], $items) ) { unset($menu[$key]); } } } }); /* REMOVE IMAGE RESIZER */ add_filter("intermediate_image_sizes_advanced", function($sizes) { unset( $sizes["medium"]); unset( $sizes["large"]); return $sizes; });