Tribe__Events__Templates::restore_global_post_title()

Restores the global $post title if it has previously been modified.

Contents

See also


Top ↑

Source

File: src/Tribe/Templates.php

		public static function restore_global_post_title() {
			global $post;
			$post->post_title = self::$original_post_title;
			remove_action( 'tribe_pre_get_view', array( __CLASS__, 'restore_global_post_title' ) );
		}