projects
/
WP-Plugins
/
glm-member-db-coupons.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ee78b5
)
Adding Tab for Coupon Categories
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 17 Nov 2016 15:14:08 +0000
(10:14 -0500)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 17 Nov 2016 15:14:08 +0000
(10:14 -0500)
Adding tab in setup/adminTabs.php
setup/adminTabs.php
patch
|
blob
|
history
diff --git
a/setup/adminTabs.php
b/setup/adminTabs.php
index
c2f4bcd
..
3a0799a
100644
(file)
--- a/
setup/adminTabs.php
+++ b/
setup/adminTabs.php
@@
-33,3
+33,19
@@
*
*/
+if (current_user_can('glm_members_members')) {
+ add_filter(
+ 'glm-member-db-add-tab-for-settings',
+ function($addOnTabs) {
+ $newTabs = array(
+ array(
+ 'text' => 'Coupon Categories',
+ 'menu' => 'settings',
+ 'action' => 'couponCategories',
+ ),
+ );
+ $addOnTabs = array_merge( $addOnTabs, $newTabs );
+ return $addOnTabs;
+ }
+ );
+}