Provider::hydrate_tec_occurrence_meta( mixed $meta_value, int $object_id, string $meta_key )

Hydrates an Occurrence provision post object caches when the _tec_occurrence property is accessed on the post object.


Parameters

$meta_value

(mixed) (Required) The original meta value as worked out by WordPress.

$object_id

(int) (Required) The ID of the object the meta is for.

$meta_key

(string) (Required) The meta key.


Top ↑

Return

(mixed) The original meta value as worked out by WordPress, unmodified by the call.


Top ↑

Source

File: src/Events_Pro/Custom_Tables/V1/WP_Query/Provider.php

	public function hydrate_tec_occurrence_meta( $meta_value, $object_id, $meta_key ) {
		if ( $this->noop ) {
			return $meta_value;
		}

		$object_id = (int) $object_id;

		if ( $meta_key !== '_tec_occurrence' ) {
			// Smaller optimization to avoid the service locator resolution only to bail out.
			return $meta_value;
		}

		return $this->container->make( Provisional_Post::class )
			->hydrate_tec_occurrence_meta( $meta_value, $object_id, $meta_key );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.