Tribe__JSON_LD__Abstract::remove( int|WP_Post $post )

Remove an Post from the Indexed list


Parameters

$post

(int|WP_Post) (Required) The Post Object or ID


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tribe/JSON_LD/Abstract.php

	public function remove( $post ) {
		$id = Tribe__Main::post_id_helper( $post );

		if ( ! $this->exists( $id ) ) {
			return false;
		}

		unset( self::$posts[ $id ] );

		return true;
	}