projects
/
WP-Plugins
/
glm-member-db-contacts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbcc919
)
Added filter to do quick check if this add-on is active.
author
Chuck Scott
<cscott@gaslightmedia.com>
Tue, 27 Nov 2018 20:40:35 +0000
(15:40 -0500)
committer
Chuck Scott
<cscott@gaslightmedia.com>
Tue, 27 Nov 2018 20:40:35 +0000
(15:40 -0500)
setup/commonHooks.php
patch
|
blob
|
history
diff --git
a/setup/commonHooks.php
b/setup/commonHooks.php
index
2226daa
..
b3194ec
100755
(executable)
--- a/
setup/commonHooks.php
+++ b/
setup/commonHooks.php
@@
-26,10
+26,12
@@
* Also note that parameters will be in the context of the main admin controller constructor.
*/
-// Filter other plugins can use to do a quick check if this plugin is installed and active.
-add_filter( 'glm-member-db-contacts-active', function() {
+/**
+ * Filter will return true if the plugin is active.
+ */
+add_filter( 'glm-members-contacts-plugin-active', function( $active ){
return true;
-});
+}
, 10, 1
);
/**
* Filter to get the user meta for a contact.