WPDev.one
Core Function
View Source on Trac ↗

wp_sizes_attribute_includes_valid_auto()

wp_sizes_attribute_includes_valid_auto( string $sizes_attr )

Checks whether the given 'sizes' attribute includes the 'auto' keyword as the first item in the list.

Parameters 1 required

Name / Type Description
$sizes_attr
string

The 'sizes' attribute value.

Required

Return Value

(bool)
True if the 'auto' keyword is present, false otherwise.

Function Information

Since Version
6.7.0
Source File
wp-includes/media.php
Advertisement