From c98fa2bb0e59d9d8c34307fc657ea6dab25d6c80 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 18 Sep 2017 08:18:24 -0400 Subject: [PATCH] Add filter for the event title on the page. Update to add the event title to the detail pages --- setup/frontHooks.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index b9e1399..8fc5791 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -93,6 +93,9 @@ if (strpos(GLM_MEMBERS_PLUGIN_CURRENT_URL, '/'.$this->config['settings']['canoni add_filter( 'wp_title', function($title) { return $GLOBALS['glmEventName']; }, 99, 1 ); + add_filter( 'the_title', function($title) { + return $GLOBALS['glmEventName']; + }, 99, 1 ); add_filter( 'wpseo_opengraph_title', function($tag){ return $GLOBALS['glmEventName']; }, 99, 1 ); -- 2.17.1