Tribe__Tabbed_View::remove( string $slug )
Removes a tab from the tabbed view items.
Contents
Parameters
- $slug
-
(string) (Required) The slug of the tab to remove
Return
(boolean) true if the slug was registered and removed, false otherwise
Source
File: src/Tribe/Tabbed_View.php
public function remove( $slug ) {
if ( ! $this->exists( $slug ) ) {
return false;
}
unset( $this->items[ $slug ] );
return true;
}