Core Function
View Source on Trac ↗ post_custom()
post_custom( mixed $key = '' ) Retrieves post custom meta data field.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $key string | Meta data key name. |
Return Value
((array)
(array | string | false) Array of values, or single value if only one element exists.
False if the key does not exist.
Function Information
Since Version
1.5.0
Source File
wp-includes/post-template.php
Advertisement