WP Manifestindependent plugin directory
manifest / media / goliath-thumbnail-control-size

Goliath thumbnail control size

WordPress plugin that control the thumbnail minume size

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/studio-goliath/goliath-thumbnail-control-size/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress plugin that control the thumbnail minume size

How to add a minimum size

Just add the thumbnail_size in your post type registration arguments.

Examples :

For a build in post type


add_filter( 'register_post_type_args', 'goliath_register_post_type_args', 10, 2 );

function goliath_register_post_type_args( $args, $post_type_name ){

    if( $post_type_name == 'post' ){

        $args['thumbnail_size'] = array(
            'min'       => array( '500', '311' ),
            'cropped'    => true
        );
    }

    return $args;
}