PluginProbe
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management / 1.6.1
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management v1.6.1
1.6.1 1.6.0 1.5.1 1.5.0 1.4.0 1.3.0 trunk 0.0.1 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0
← All changes | inc/emails/email-handler.php +2 -2 1.5.1 → 1.6.1 View file →
@@ -174,9 +174,9 @@
174 174 *
175 175 * @param string $event Email event.
176 176 * @param int $donation_id Donation ID.
177 177 * @return string
178 - * @since x.x.x
178 + * @since 1.6.0
179 179 */
180 180 public static function sent_marker_key( $event, $donation_id ) {
181 181 return 'suredonation_email_sent_' . (string) $event . '_' . absint( $donation_id );
182 182 }
@@ -191,9 +191,9 @@
191 191 *
192 192 * @param int $donation_id Donation ID.
193 193 * @param string $event Email event; defaults to the donation receipt.
194 194 * @return bool
195 - * @since x.x.x
195 + * @since 1.6.0
196 196 */
197 197 public static function has_sent( $donation_id, $event = self::EVENT_DONATION_COMPLETED ) {
198 198 return (bool) get_transient( self::sent_marker_key( $event, $donation_id ) );
199 199 }