Tribe__Tickets_Plus__Meta__Storage::delete_meta_data( null|int $id = null, null|string $hash_key = null )

Delete transient for meta.


Parameters

$id

(null|int) (Optional) Post ID (or null if using current post). Note: This is only for context, it does not affect what is deleted.

Default value: null

$hash_key

(null|string) (Optional) The hash key.

Default value: null


Top ↑

Return

(boolean) Whether the transient was deleted.


Top ↑

Source

File: src/Tribe/Meta/Storage.php

	public function delete_meta_data( $id = null, $hash_key = null ) {
		// Get the transient name.
		$transient_name = $this->get_transient_name( $id, $hash_key );

		if ( empty( $transient_name ) ) {
			return false;
		}

		delete_transient( $transient_name );

		$this->delete_cookie( $id );

		$this->data_cache = [];

		return true;
	}

Top ↑

Changelog

Changelog
Version Description
4.11.0 Introduced.