Add filter for the event title on the page.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 18 Sep 2017 12:18:24 +0000 (08:18 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 18 Sep 2017 12:18:24 +0000 (08:18 -0400)
Update to add the event title to the detail pages

setup/frontHooks.php

index b9e1399..8fc5791 100644 (file)
@@ -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 );