projects
/
WP-Plugins
/
glm-member-db-events.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
704a36e
)
Add filter for the event title on the page.
author
Steve Sutton
<steve@gaslightmedia.com>
Mon, 18 Sep 2017 12:18:24 +0000
(08:18 -0400)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/setup/frontHooks.php
b/setup/frontHooks.php
index
b9e1399
..
8fc5791
100644
(file)
--- 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 );