Fixed a problem with the updated filter for event Edit and update pages to show the...
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 2 Nov 2017 18:24:17 +0000 (14:24 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 2 Nov 2017 18:24:17 +0000 (14:24 -0400)
setup/adminHooks.php

index 4e4ddd2..5c82737 100644 (file)
@@ -43,7 +43,12 @@ add_filter('glm-member-db-admin-management-hooksHelp', function($content) {
     2
 );
 
-// Add a filter to include a link to either create registrations for an event or to update that.
+/*
+ * Add a filter to include a link to either create registrations for an event or to update that.
+ * If this is for a an event that has registrations setup, also provide some messages for edit
+ * and update pages for the event to let users know they have to update registrations if they
+ * change the dates or schedules.
+ */
 add_filter(
     'glm_members_add_link_to_event_list_entry',
     function( $content ){
@@ -79,6 +84,7 @@ add_filter(
         return array(
             'title' => 'Add Registrations To Event',
             'url' => GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE."registrations-events&option=eventDashboard&option=add&event=".$eventId,
+            'warning_title' => false,
             'edit_warning' => '',
             'update_warning' => ''
         );