changing field values of 'name' to title for the dashboard widget admin hooks
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 19 Sep 2018 19:44:41 +0000 (15:44 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 19 Sep 2018 19:44:41 +0000 (15:44 -0400)
setup/adminHooks.php

index 2f7c6c4..85488a2 100644 (file)
@@ -71,7 +71,8 @@ add_filter(
                 'table' => GLM_MEMBERS_PACKAGING_PLUGIN_DB_PREFIX."packages",
                 'fields' => [
                     'id',
-                    'name',
+                    'title',
+                    'image'
                 ]
             ],
             'pending' => [
@@ -80,7 +81,7 @@ add_filter(
                 'table' => GLM_MEMBERS_PACKAGING_PLUGIN_DB_PREFIX."packages",
                 'fields' => [
                     'id',
-                    'name',
+                    'title',
                 ],
                 'where' => 'status = '.$this->config['status_numb']['Pending']
             ],
@@ -91,7 +92,6 @@ add_filter(
                 'fields' => [
                     'id',
                     'title',
-                    'image'
                 ],
                 //'where' => 'status = '.$this->config['status_numb']['Expired']
             ]