adding data attribute to the admin hooks events filter info for the export functionality
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 27 Sep 2018 20:53:00 +0000 (16:53 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 27 Sep 2018 20:53:00 +0000 (16:53 -0400)
setup/adminHooks.php

index 099155a..1610a7b 100644 (file)
@@ -264,16 +264,18 @@ add_filter(
                     'template'  => 'buttons',
                     'buttons'   => [
                         'add-event' => [
-                            'content'   => 'Add Event',
-                            'url'       => $eventsIndexPage . "&option=add",
-                            'classes'   => '',
-                            'styles'    => ''
+                            'content'       => 'Add Event',
+                            'url'           => $eventsIndexPage . "&option=add",
+                            'classes'       => '',
+                            'styles'        => '',
+                            'data'          => ''
                         ],
                         'export-button' => [
-                            'content'   => 'Export',
-                            'url'       => '#',
-                            'classes'   => 'btn-small',
-                            'styles'    => ''
+                            'content'       => 'Export',
+                            'url'           => '#',
+                            'classes'       => 'btn-small widget-export-btn',
+                            'styles'        => '',
+                            'data'          => 'events'
                         ],
                     ],
                 ],