Add help tab for contacts
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 14:58:26 +0000 (10:58 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 14:58:26 +0000 (10:58 -0400)
Add help menu tab for Member Contacts.

setup/adminTabs.php

index 79060f5..52beb4b 100644 (file)
@@ -102,6 +102,18 @@ if (current_user_can('glm_members_management')) {
             return $addOnTabs;
         }
     );
+    add_filter( 'glm-member-db-add-help-for-import',
+        function( $helpTabs ){
+            $helpTabs[] = array(
+                'id'      => 'glm-member-db-import-help-contacts',
+                'title'   => __( 'Member Contacts' ),
+                'content' => '<p>' . __( 'Follow the Sample File provided in creating the file for member contact import.
+                Each record must have the following fields. <ul><li>member_id</li><li>member_name</li><li>member_login</li>
+                <li>memberpasswd</li><li>member_email</li></ul>' )  . '</p>'
+            );
+            return $helpTabs;
+        }
+    );
 }
 
 ?>