public function remove_custom_image_sizes($sizes = [])
    {
        if (Config::get('images.dynamic_image_sizes') !== false) {
            return \array_diff_key($sizes, self::$dynamic_sizes);
        }

        return $sizes;
    }
public function remove_custom_image_sizes($sizes = [])
    {
        if (Config::get('images.dynamic_image_sizes') !== false) {
            return \array_diff_key($sizes, self::$dynamic_sizes);
        }

        return $sizes;
    }
public function remove_custom_image_sizes ( $ sizes = [ ] ) { if ( Config :: get ( 'images.dynamic_image_sizes' ) !== false ) { return \ array_diff_key ( $ sizes , self :: $ dynamic_sizes ) ; } return $ sizes ; }
Removes all custom image sizes that do not have dropdown names.

This allows developers to specify which image sizes are choosable within an editor context, and which
should only be generated if actually needed.

@since  1.0.0

@param  array $sizes Current registered sizes.
@return array Modified $sizes array.
Removes all custom image sizes that do not have dropdown names .