public function boot()
    {
        // Enable post-thumbnail support.
        $this->enable_thumbnail_support();

        // Register all image sizes.
        $this->register_image_sizes();

        // Remove all default image sizes.
        if (Config::get('images.reset_image_sizes') !== false) {
            $this->add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes');
            $this->add_filter('intermediate_image_sizes_advanced', 'remove_custom_image_sizes');
            $this->add_filter('intermediate_image_sizes', 'remove_default_image_sizes');
        }

        if (! empty($this->size_dropdown_names)) {
            $this->add_filter('image_size_names_choose', 'enable_custom_image_sizes');
        }
    
        // Set default image size dropdown value.
        if (! empty(Config::get('images.insert_image_default_size'))) {
            $this->add_filter('after_setup_theme', 'set_insert_image_default_size');
        }

        if (Config::get('images.dynamic_image_sizes') !== false) {
            $this->add_filter('image_downsize', 'generate_dynamic_image');
        }
    }
public function boot()
    {
        // Enable post-thumbnail support.
        $this->enable_thumbnail_support();

        // Register all image sizes.
        $this->register_image_sizes();

        // Remove all default image sizes.
        if (Config::get('images.reset_image_sizes') !== false) {
            $this->add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes');
            $this->add_filter('intermediate_image_sizes_advanced', 'remove_custom_image_sizes');
            $this->add_filter('intermediate_image_sizes', 'remove_default_image_sizes');
        }

        if (! empty($this->size_dropdown_names)) {
            $this->add_filter('image_size_names_choose', 'enable_custom_image_sizes');
        }
    
        // Set default image size dropdown value.
        if (! empty(Config::get('images.insert_image_default_size'))) {
            $this->add_filter('after_setup_theme', 'set_insert_image_default_size');
        }

        if (Config::get('images.dynamic_image_sizes') !== false) {
            $this->add_filter('image_downsize', 'generate_dynamic_image');
        }
    }
public function boot ( ) { // Enable post-thumbnail support. $ this -> enable_thumbnail_support ( ) ; // Register all image sizes. $ this -> register_image_sizes ( ) ; // Remove all default image sizes. if ( Config :: get ( 'images.reset_image_sizes' ) !== false ) { $ this -> add_filter ( 'intermediate_image_sizes_advanced' , 'remove_default_image_sizes' ) ; $ this -> add_filter ( 'intermediate_image_sizes_advanced' , 'remove_custom_image_sizes' ) ; $ this -> add_filter ( 'intermediate_image_sizes' , 'remove_default_image_sizes' ) ; } if ( ! empty ( $ this -> size_dropdown_names ) ) { $ this -> add_filter ( 'image_size_names_choose' , 'enable_custom_image_sizes' ) ; } // Set default image size dropdown value. if ( ! empty ( Config :: get ( 'images.insert_image_default_size' ) ) ) { $ this -> add_filter ( 'after_setup_theme' , 'set_insert_image_default_size' ) ; } if ( Config :: get ( 'images.dynamic_image_sizes' ) !== false ) { $ this -> add_filter ( 'image_downsize' , 'generate_dynamic_image' ) ; } }
Register class conditional filters.

@since  1.0.0
Register class conditional filters .