Tribe__Tickets_Plus__Meta__Export::column_exists( string $key )
Check if a column exists, by checking agains the object slug
Contents
Parameters
- $key
-
(string) (Required) The slug we want to compare
Return
(bool)
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;
}
Changelog
| Version | Description |
|---|---|
| 4.8.3 | Introduced. |