From dc0ac6b09aa7a657174f113fcee4da2967a7a212 Mon Sep 17 00:00:00 2001 From: Ingmar Aasoja Date: Mon, 21 Aug 2017 21:32:27 +0300 Subject: [PATCH] added possibility to show more info about notify during preview --- camptix.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/camptix.php b/camptix.php index 115dbd2..8dbbeff 100644 --- a/camptix.php +++ b/camptix.php @@ -2975,7 +2975,9 @@ function menu_tools_notify() { add_settings_error( 'camptix', false, $error ); } } elseif ( ! empty( $_POST['tix_notify_preview'] ) ) { - add_settings_error( 'camptix', 'none', sprintf( __( 'Your segment matched %s recipients.', 'camptix' ), count( $recipients ) ), 'updated' ); + $notify_overview = apply_filters( 'camptix_notify_overview', sprintf( __( 'Your segment matched %s recipients.', 'camptix' ), count( $recipients ) ), $recipients, $conditions); + + add_settings_error( 'camptix', 'none', $notify_overview, 'updated' ); } // Keep form data.