__get_image_sizes

A utility method that retrieves a collection of available intermediate image size names.

REMINDER

The __get_image_sizes() is a public static method of Handy class. When using this static method, remember to apply the Scope Resolution Operator (::).

Parameters

NameDescription
none none

Basic Usage

REMINDER

In this example, the select control's choices parameter will be supplied with __get_image_sizes().

 
// Select Control.
Handy::control( 'select', [
    'id'          => 'select_id',
    'section'     => 'layout_section',
    'label'       => esc_html__( 'Select Control', 'textdomain' ),
    'priority'    => 1,
    'choices'     => Handy::__get_image_sizes()
]);

Return

TypeValue
array [ 'image_size_name' => 'image_size_name', … ]