Skip to content

Less aggressive notification times #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 12, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
less aggresive notification emails
  • Loading branch information
hugosolar committed Dec 12, 2019
commit 2e3be4206c0b5dffecdb0f79077f7af3fbd2e096
10 changes: 5 additions & 5 deletions plugins/cc-global-network/cron/email-vouch-request-reminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
// Defines
////////////////////////////////////////////////////////////////////////////////

define('CCGN_VOUCH_REQUEST_REMINDER_DAY_FIRST_REMINDER', 1);
define('CCGN_VOUCH_REQUEST_REMINDER_DAY_SECOND_REMINDER', 3);
define('CCGN_VOUCH_REQUEST_REMINDER_DAY_FINAL_REMINDER', 5);
define('CCGN_VOUCH_REQUEST_REMINDER_DAY_CLOSE', 6);
define('CCGN_VOUCH_REQUEST_REMINDER_DAY_FIRST_REMINDER', 3);
define('CCGN_VOUCH_REQUEST_REMINDER_DAY_SECOND_REMINDER', 6);
define('CCGN_VOUCH_REQUEST_REMINDER_DAY_FINAL_REMINDER', 8);
define('CCGN_VOUCH_REQUEST_REMINDER_DAY_CLOSE', 14);

////////////////////////////////////////////////////////////////////////////////
// Checking and sending
Expand Down Expand Up @@ -111,7 +111,7 @@ function ccgn_email_vouch_request_reminders () {
$day = ($now->diff($request_date))->days;
$vouchers = ccgn_application_vouchers_users_ids ( $applicant_id );
foreach ( $vouchers as $voucher_id ) {
if ( ccgn_vouching_request_open ( $applicant_id, $voucher_id ) && ccgn_registration_user_is_vouchable ( $applicant_id ) ) {
if ( ccgn_vouching_request_open ( $applicant_id, $voucher_id ) ) {
ccgn_email_vouch_request_reminder_maybe_close (
$voucher_id,
$applicant_id,
Expand Down