Media
in package
Adds administration functions to media uploads.
Tags
Table of Contents
Properties
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
Methods
- get_instance() : object
- Creates and/or returns the instance of this class.
- image_size_chooser() : array<string|int, mixed>
- Add custom sizes to the media size chooser.
- __construct() : void
- Initialise the class.
Properties
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
Methods
get_instance()
Creates and/or returns the instance of this class.
public
static get_instance() : object
Tags
Return values
object —The instance of this class.
image_size_chooser()
Add custom sizes to the media size chooser.
public
image_size_chooser(array<string|int, mixed> $sizes) : array<string|int, mixed>
Parameters
- $sizes : array<string|int, mixed>
-
Array of image size key/value pairs.
Tags
Return values
array<string|int, mixed> —The modified sizes array.
__construct()
Initialise the class.
protected
__construct() : void