WPDev.one
Core Function
View Source on Trac ↗

image_hwstring()

image_hwstring( mixed $width, mixed $height )

Retrieves width and height attributes using given width and height values.

Parameters 2 required

Name / Type Description
(int

| string) $width Image width in pixels.

Required
(int

| string) $height Image height in pixels.

Required

Return Value

(string)
HTML attributes for width and, or height.

Function Information

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