Tribe__Events__Community__Main::flushPageIdTransient( int $post_id )

Upon page save, flush the transient for the page-id.


Parameters

$post_id

(int) (Required) The current post id.


Top ↑

Return

(void)


Top ↑

Source

File: src/Tribe/Main.php

		public function flushPageIdTransient( $post_id ) {
			if ( get_post_type( $post_id ) == 'page' ) {
				delete_transient( 'tribe-community-events-page-id' );
			}
		}

Top ↑

Changelog

Changelog
Version Description
1.0.5 Introduced.