From b7c0ff173e1d8754ed66b5516463c8ff1285b324 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 2 Nov 2017 14:24:17 -0400 Subject: [PATCH] Fixed a problem with the updated filter for event Edit and update pages to show the messages and link only on events with registrations. --- setup/adminHooks.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 4e4ddd2..5c82737 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -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' => '' ); -- 2.17.1