| @@ -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 | } |