Core Function
View Source on Trac ↗ wp_get_webp_info()
wp_get_webp_info( mixed $filename ) Extracts meta information about a WebP file: width, height, and type.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $filename string | Path to a WebP file. Required |
Return Value
(array)
array {
An array of WebP image information.
Function Information
Since Version
5.8.0
Source File
wp-includes/media.php
Advertisement