From: Anthony Talarico Date: Thu, 27 Sep 2018 20:53:00 +0000 (-0400) Subject: adding data attribute to the admin hooks events filter info for the export functionality X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6f62920a7140acfc107a339d4da26c801c12c77f;p=WP-Plugins%2Fglm-member-db-events.git adding data attribute to the admin hooks events filter info for the export functionality --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 099155a..1610a7b 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -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' ], ], ],