Tribe__Field::do_field_name( bool $multi = false )

returns the field’s name


Parameters

$multi

(bool) (Optional)

Default value: false


Top ↑

Return

(string) the field name


Top ↑

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 );
		}