Add filter
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 10 Aug 2018 18:04:32 +0000 (14:04 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 10 Aug 2018 18:04:32 +0000 (14:04 -0400)
To test if plugin is enabled.

setup/adminHooks.php

index 879384b..baf00cb 100644 (file)
@@ -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
+);