projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d2552c
)
adding a new filter to get a list of the activated addons
author
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 24 Oct 2019 19:18:45 +0000
(15:18 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 24 Oct 2019 19:18:45 +0000
(15:18 -0400)
added new "glm_list_addons" filter to adminhooks to get list of add on slugs
setup/adminHooks.php
patch
|
blob
|
history
diff --git
a/setup/adminHooks.php
b/setup/adminHooks.php
index
9c509a6
..
7c8d241
100755
(executable)
--- a/
setup/adminHooks.php
+++ b/
setup/adminHooks.php
@@
-297,6
+297,14
@@
add_filter( 'glm-hook-list-map-items-by-latlon', function( $data ) {
});
+add_filter("glm_list_addons", function( ) {
+ $add_on_slugs = array();
+ foreach($this->config['addOns'] as $add_on){
+ array_push($add_on_slugs, $add_on['slug']);
+ }
+ return $add_on_slugs;
+});
+
// Add Filter for the glm_associate_phone_filter
add_filter( 'glm_associate_phone_filter', function( $phone ) {
// Passing phone to Plugin Support Function