tribe_community_events_field_label( string $field, string $text )
Community events field label.
Contents
Parameters
- $field
-
(string) (Required) The field name.
- $text
-
(string) (Required) The field label.
Return
(void)
Source
File: src/functions/template-tags.php
function tribe_community_events_field_label( $field, $text ) { $label_text = apply_filters( 'tribe_community_events_field_label_text', $text, $field ); $class = tribe_community_events_field_has_error( $field ) ? 'error' : ''; $class = apply_filters( 'tribe_community_events_field_label_class', $class, $field ); $html = sprintf( '<label for="%s" class="%s">%s %s</label>', $field, $class, $label_text, tribe_community_required_field_marker( $field ) ); $html = apply_filters( 'tribe_community_events_field_label', $html, $field, $text ); echo $html; }