Tribe__Field::do_field_attributes()

Return a string of attributes for the field

Contents


Return

(string)


Top ↑

Source

File: src/Tribe/Field.php

		public function do_field_attributes() {
			$return = '';
			if ( ! empty( $this->attributes ) ) {
				foreach ( $this->attributes as $key => $value ) {
					$return .= ' ' . $key . '="' . $value . '"';
				}
			}

			return apply_filters( 'tribe_field_attributes', $return, $this->name, $this );
		}