// Add filters for use anywhere else (apply_filter). Will have to add this to index.php eventually
add_filter('glmMembersFrontScriptsFilter',array($this,'glmMembersFrontScripts'));
- add_filter('glmMembersFrontCSSFilter',array($this,'glmMembersFrontCSS'));
+ add_action('glmMembersFrontCSSFilter',array($this,'glmMembersFrontCSS'));
}
/**
* Plugin Name: GLM Members Database
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 2.0.1
+ * Version: 2.0.2
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabase
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.0.0
+ * @version 2.0.2
*/
/*
*
*/
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.0.0');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.0.2');
define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.7');
// Check if plugin version is not current in WordPress option and if needed updated it
$membersOnlyPage = get_option(GLM_MEMBERS_PLUGIN_OPTION_MEMBERS_ONLY_ID);
$newTemplate = locate_template( $templateName );
if ( (is_in_tree($membersOnlyPage)) && ($newTemplate != "") ) { // if in same tree as the members page for this site
- apply_filters('glmMembersFrontCSSFilter');
+ do_action('glmMembersFrontCSSFilter');
return $newTemplate;
/* //Uncomment this if you want every child page of the members only page to be given the members only template
* // (i.e. changed in the database) and not just using them on the front-end
// Not in tree of $membersOnlyPage;
}
return $template;
-}
\ No newline at end of file
+}