* Plugin Name: GLM Members Database Events
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.2.18
+ * Version: 1.2.19
* Author: Chuck Scott
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabaseEventsAddOn
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.2.18
+ * @version 1.2.19
*/
/*
* so that we're sure the other add-ons see an up to date
* version from this plugin.
*/
-define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.18');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.19');
define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.0.18');
// This is the minimum version of the GLM Members DB plugin require for this plugin.
global $wpdb;
$GLOBALS['glmEventName'] = $wpdb->get_var( "SELECT name FROM ".GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "events WHERE name_slug = '".$GLOBALS['glmDetailSlug']."'" );
- // Set the page title to the event name
- add_filter('wp_title', function() {
+ // Set the page title to the event name - Using low priority so it's the last to set the title!
+ add_filter('wp_title', function($title) {
return $GLOBALS['glmEventName'];
- });
+ }, 99, 1);
}
// Add eventslug query var