Tribe__Field::do_field_label()
returns the field’s label
Return
(string) the field label
Source
File: src/Tribe/Field.php
public function do_field_label() {
$return = '';
if ( $this->label ) {
if ( isset( $this->label_attributes ) ) {
$this->label_attributes['class'] = isset( $this->label_attributes['class'] ) ?
implode( ' ', array_merge( array( 'tribe-field-label' ), $this->label_attributes['class'] ) ) :
array( 'tribe-field-label' );
$this->label_attributes = $this->concat_attributes( $this->label_attributes );
}
$return = sprintf( '<legend class="tribe-field-label" %s>%s</legend>', $this->label_attributes, $this->label );
}
return apply_filters( 'tribe_field_label', $return, $this->label, $this );
}