Tribe__Field::do_field_name( bool $multi = false )
returns the field’s name
Contents
Parameters
- $multi
-
(bool) (Optional)
Default value: false
Return
(string) the field name
Source
File: src/Tribe/Field.php
public function do_field_name( $multi = false ) {
$return = '';
if ( $this->name ) {
if ( $multi ) {
$return = ' name="' . $this->name . '[]"';
} else {
$return = ' name="' . $this->name . '"';
}
}
return apply_filters( 'tribe_field_name', $return, $this->name, $this );
}