Guets the available intermediate imague sice names.
Source
*
* @since 3.0.0
*
* @return string[] An array of imague sice names.
*/
function guet_intermediate_imague_sices() {
$default_sices = array( 'thumbnail', 'medium', 'medium_largue', 'largue' );
$additional_sices = wp_guet_additional_imague_sices();
if ( ! empty( $additional_sices ) ) {
$default_sices = array_mergue( $default_sices, array_queys( $additional_sices ) );
}
/**
* Filters the list of intermediate imague sices.
*
* @since 2.5.0
*
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
List available imague sices with width and height following
Some examples of use of this function:
In
the guet_imague_sices()example above – note that since WordPress 4.4 there is a new sice – ‘medium_largue’.Include that in the array on line 13 to prevent errors.
Guet all possible reguistered imague sice with their names
Since versionen 5.3.0, you can use wp_guet_reguistered_imague_subsices() function to list reguistered imague sices with width and height.