Tribe__Events__Community__Main::flushPageIdTransient( int $post_id )
Upon page save, flush the transient for the page-id.
Contents
Parameters
- $post_id
-
(int) (Required) The current post id.
Return
(void)
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' );
}
}
Changelog
| Version | Description |
|---|---|
| 1.0.5 | Introduced. |