Tribe__Tabbed_View::remove( string $slug )

Removes a tab from the tabbed view items.


Parameters

$slug

(string) (Required) The slug of the tab to remove


Top ↑

Return

(boolean) true if the slug was registered and removed, false otherwise


Top ↑

Source

File: src/Tribe/Tabbed_View.php

	public function remove( $slug ) {
		if ( ! $this->exists( $slug ) ) {
			return false;
		}

		unset( $this->items[ $slug ] );

		return true;
	}