projects
/
WP-Plugins
/
glm-member-db-packaging.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab93975
)
Added filter to do quick check if this add-on is active.
author
Chuck Scott
<cscott@gaslightmedia.com>
Tue, 27 Nov 2018 20:56:17 +0000
(15:56 -0500)
committer
Chuck Scott
<cscott@gaslightmedia.com>
Tue, 27 Nov 2018 20:56:17 +0000
(15:56 -0500)
setup/commonHooks.php
[new file with mode: 0755]
patch
|
blob
diff --git a/setup/commonHooks.php
b/setup/commonHooks.php
new file mode 100755
(executable)
index 0000000..
83d78b2
--- /dev/null
+++ b/
setup/commonHooks.php
@@ -0,0
+1,10
@@
+<?php
+// Place any filters that are being called from the data classes here.
+// This hooks files gets called in for both admin and front.
+
+/**
+ * Filter will return true if the plugin is active.
+ */
+add_filter( 'glm-members-packaging-plugin-active', function( $active ){
+ return true;
+}, 10, 1 );