Tribe__Events__Aggregator__Record__Activity::remove( string $slug )

Removes a activity from the Registered ones


Parameters

$slug

(string) (Required) The Slug of the Activity


Top ↑

Return

(boolean)


Top ↑

Source

File: src/Tribe/Aggregator/Record/Activity.php

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

		if ( ! isset( $this->map[ $slug ] ) ) {
			return false;
		}

		// Map the Slug
		$slug = $this->map[ $slug ];

		// Remove it
		unset( $this->items[ $slug ] );
		return true;
	}