Skip to content

Horttcore/wp-image-sizes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Image Sizes StyleCI

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();

About

A helper class for registering image sizes

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages