Tribe_Events::set_database_params()

Configures the Relationship between shortcode ID and their params in the database allowing us to pass the URL as the base for the Queries.


Return

(bool) Return if we have the arguments configured or not.


Top ↑

Source

File: src/Tribe/Views/V2/Shortcodes/Tribe_Events.php

	public function set_database_params() {
		$shortcode_id = $this->get_id();
		$transient_key = static::TRANSIENT_PREFIX . $shortcode_id;
		$db_arguments = $this->get_database_arguments();

		// If the value is the same it's already on the Database.
		if ( $db_arguments === $this->get_arguments() ) {
			return true;
		}

		return set_transient( $transient_key, $this->get_arguments() );
	}

Top ↑

Changelog

Changelog
Version Description
4.7.9 Introduced.