PHP code example of ralfhortt / wp-image-sizes

1. Go to this page and download the library: Download ralfhortt/wp-image-sizes library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ralfhortt / wp-image-sizes example snippets



new ImageSize(string $identifier, string $label, int $width, int $height, bool $crop);


use RalfHortt\ImageSizes\ImageSize;

(new ImageSize('tiny', __('Tiny', 'TEXTDOMAIN'), 50, 50, true))->register();