Add docs in code
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 29 Nov 2017 19:28:22 +0000 (14:28 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 29 Nov 2017 19:28:22 +0000 (14:28 -0500)
Adding php docs.

setup/adminHooks.php

index 9c7f753..b013323 100644 (file)
@@ -196,7 +196,9 @@ add_filter('glm-member-db-admin-search-query', function() {
 });
 
 /**
- * ????????
+ * Save the data for the Member Info Custom Fields
+ * Returns true if successful
+ * Returns failure array if something goes wrong.
  */
 add_filter('glm-member-db-save-custom-fields', function( $entityID) {
     require_once GLM_MEMBERS_FIELDS_PLUGIN_CLASS_PATH . '/customFieldPluginSupport.php';
@@ -210,7 +212,9 @@ add_filter('glm-member-db-save-custom-fields', function( $entityID) {
 );
 
 /**
- * ????????
+ * Clones the custom fields data
+ * Grabs the custom field data for an entity and setup those custom fields
+ * for a new id.
  */
 add_action(
     'glm-member-db-clone-custom-fields',