From: Chuck Scott Date: Thu, 2 Nov 2017 18:24:17 +0000 (-0400) Subject: Fixed a problem with the updated filter for event Edit and update pages to show the... X-Git-Tag: v1.0.0^2~300 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b7c0ff173e1d8754ed66b5516463c8ff1285b324;p=WP-Plugins%2Fglm-member-db-registrations.git Fixed a problem with the updated filter for event Edit and update pages to show the messages and link only on events with registrations. --- 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' => '' );