Tribe__Tickets_Plus__Meta__Export::column_exists( string $key )

Check if a column exists, by checking agains the object slug


Parameters

$key

(string) (Required) The slug we want to compare


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tribe/Meta/Export.php

	public function column_exists( $key ) {

		foreach ( $this->meta_columns as $column ) {
			// Bail if the column key exists or if it's a checkbox
			if (
				$column->slug === $key
				|| 'checkbox' === $column->type
			) {
				return true;
			}
		}
		return false;
	}

Top ↑

Changelog

Changelog
Version Description
4.8.3 Introduced.