llms_update_520_upcoming_reminder_notification_backward_compat()
Explicitly set no subscribers for the new upcoming payment reminder notification
Contents
Return Return
(bool) True if it needs to run again, false otherwise.
Source Source
File: includes/functions/updates/llms-functions-updates-520.php
function llms_update_520_upcoming_reminder_notification_backward_compat() { $subscribers_for_type = array( 'email' => array( 'student', ), 'basic' => array( 'student', 'author', 'custom', ), ); foreach ( $subscribers_for_type as $type => $subscribers ) { add_option( "llms_notification_upcoming_payment_reminder_{$type}_subscribers", array_fill_keys( $subscribers, 'no' ) ); } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |