Add required fields to help for member csv import
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 17 Jul 2017 19:53:22 +0000 (15:53 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 17 Jul 2017 19:53:22 +0000 (15:53 -0400)
Adding required fields to the help section for member CSV Import.

setup/adminHooks.php

index d9ab22f..4b750b8 100644 (file)
@@ -327,6 +327,7 @@ function glm_admin_import_help_tab () {
             '<p>' . __( 'On most tabs, except for the Member Contacts, You\'ll
             see a checkbox for Clear data. You\'ll want to uncheck this if you
             don\'t want the import to clear out the original data.' ) . '</p>'
+            . '<h3>Required Fields (member file)</h3><ul><li>id</li><li>member_name</li><li>status</li></ul>'
 
         )
     );
@@ -338,6 +339,7 @@ function glm_admin_import_help_tab () {
             galleries for each member. Make sure the "image" field contains a
             complete url for the image. You should also make sure the image is
             no larger than 800px wide.' ) .  '</p>'
+            . '<h3>Required Fields</h3><ul><li>member_id</li><li>image</li></ul>'
         )
     );
     $screen->add_help_tab(
@@ -346,7 +348,7 @@ function glm_admin_import_help_tab () {
             'title'   => __( 'Import Files' ),
             'content' => '<p>' . __( 'This tab will allow you to import files
             for each member. Make sure the "file_url" field contains a complete url
-            for the file.' ) .  '</p>'
+            for the file.' ) .  '</p>' . '<h3>Required Fields</h3><ul><li>member_id</li><li>file_url</li><li>file_name</li></ul>'
         )
     );
     // Get help tabs from the other plugins using apply_filters.