ralfhortt / wp-image-sizes
A helper class to register image sizes
1.0.0
2019-05-31 20:45 UTC
This package is auto-updated.
Last update: 2026-02-17 06:51:46 UTC
README
A helper class to register image sizes
Description
Image sizes are register like the default function add_image_size, beside of that, the image size will be added to the dropdown selection.
Installation
$ composer require ralfhortt/wp-image-sizes
Documentation
<?php new ImageSize(string $identifier, string $label, int $width, int $height, bool $crop);
Usage
<?php use RalfHortt\ImageSizes\ImageSize; (new ImageSize('tiny', __('Tiny', 'TEXTDOMAIN'), 50, 50, true))->register();