Core Function
View Source on Trac ↗ wp_load_image()
wp_load_image( mixed $file ) Load an image from a string, if PHP supports it.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $file string | Filename of the image to load. Required |
Return Value
((resource)
(resource | GdImage | string) The resulting image resource or GdImage instance on success,
error string on failure.
Function Information
Since Version
2.1.0
Source File
wp-includes/deprecated.php
Advertisement