From: Steve Sutton Date: Mon, 18 Sep 2017 12:18:24 +0000 (-0400) Subject: Add filter for the event title on the page. X-Git-Tag: v1.6.66^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c98fa2bb0e59d9d8c34307fc657ea6dab25d6c80;p=WP-Plugins%2Fglm-member-db-events.git Add filter for the event title on the page. Update to add the event title to the detail pages --- 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 );