projects
/
WP-Plugins
/
glm-member-db-for-sale.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b52a94
)
Add filter
author
Steve Sutton
<steve@gaslightmedia.com>
Fri, 10 Aug 2018 18:04:32 +0000
(14:04 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Fri, 10 Aug 2018 18:04:32 +0000
(14:04 -0400)
To test if plugin is enabled.
setup/adminHooks.php
patch
|
blob
|
history
diff --git
a/setup/adminHooks.php
b/setup/adminHooks.php
index
879384b
..
baf00cb
100644
(file)
--- a/
setup/adminHooks.php
+++ b/
setup/adminHooks.php
@@
-25,3
+25,9
@@
*
* Also note that parameters will be in the context of the main admin controller constructor.
*/
+add_filter(
+ 'glm-members-forsale-enabled',
+ function( $content ){
+ return true;
+ },10, 1
+);