Technical Docs

Search Documentation

Function: tribe_get_custom_field

Deprecated

Get Event Custom Field by Label

Located at src/functions/template-tags/general.php (Line: 231)

Description

retrieve a custom field’s value by searching its label instead of its (more obscure) ID

Parameters summary

() $label
((int)) $eventID (optional), the event to look for, defaults to global $post

Return value summary

((string)) value of the field

Examples

(string) tribe_get_custom_field ( $label, (int) $eventID = null )