Add help to the help tab for import.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 15:45:59 +0000 (11:45 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 15:45:59 +0000 (11:45 -0400)
Adding help tab for the social media import.

setup/adminTabs.php

index e21abde..ea7fc11 100644 (file)
@@ -90,4 +90,16 @@ if (current_user_can('glm_members_members')) {
             return $addOnTabs;
         }
     );
+    add_filter( 'glm-member-db-add-help-for-import',
+        function( $helpTabs ){
+            $helpTabs[] = array(
+                'id'      => 'glm-member-db-import-help-social',
+                'title'   => __( 'Social Media' ),
+                'content' => '<p>' . __( 'Follow the Sample File provided in
+                creating the file for the member social media import. Each
+                record must have the "member_id" field' ) . '</p>'
+            );
+            return $helpTabs;
+        }
+    );
 }