• Home
  • Knowledgebase
  • DevDocs
  • Translations
  • Support
  • Live Preview

logo DevDocs

By The Events Calendar
Filter by type:
Skip to content
Filter by type:
Search
Browse: Home / Classes / Provisional_Post_Meta / Provisional_Post_Meta::hydrate_provisional_postmeta_query()
Product: The Events Calendar PRO

Provisional_Post_Meta::hydrate_provisional_postmeta_query( string $query )

Hydrates the cache and parses the post meta update query.

Contents

  • Parameters
  • Return
  • Source
  • Changelog

Parameters

$query

(string) (Required) The query string.


Top ↑

Return

(string) The parsed query string or original if wrong query.


Top ↑

Source

File: src/Events_Pro/Custom_Tables/V1/Models/Provisional_Post_Meta.php

	public function hydrate_provisional_postmeta_query( $query ): string {
		if ( empty( $query ) || ! is_string( $query ) ) {
			return $query;
		}
		$provisional_post = tribe( Provisional_Post::class );
		$provisional_id   = $this->parse_query_postmeta_id( $query );

		if ( false === $provisional_id || ! $provisional_post->is_provisional_post_id( $provisional_id ) ) {
			return $query;
		}

		$occurrence = $provisional_post->get_occurrence_row( $provisional_id );

		if ( ! $occurrence instanceof Occurrence ) {
			// We might be getting a request for a cached Occurrence: it will not be found.
			return $query;
		}

		return $this->occurrence_postmeta_row_sql( $occurrence->post_id );
	}

Expand full source code Collapse full source code


Top ↑

Changelog

Changelog
Version Description
7.3.0 Introduced.
The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2026 The Events Calendar Terms and Conditions Privacy