88 * @subpackage Classes/Emails
99 * @copyright Copyright (c) 2016, GiveWP
1010 * @license https://opensource.org/licenses/gpl-license GNU Public License
11- * @unreleased
11+ * @since 4.14.0
1212 */
1313
1414// Exit if access directly.
2121if ( ! class_exists ( 'Give_Failed_Donation_Email ' ) ) :
2222
2323 /**
24- * @unreleased
24+ * @since 4.14.0
2525 */
2626 class Give_Failed_Donation_Email extends Give_Email_Notification {
2727
2828 /* @var Donation|null $donation */
2929 private $ donation ;
3030
3131 /**
32- * @unreleased
32+ * @since 4.14.0
3333 */
3434 public function init () {
3535
@@ -52,7 +52,7 @@ public function init() {
5252 }
5353
5454 /**
55- * @unreleased
55+ * @since 4.14.0
5656 *
5757 * @return string
5858 */
@@ -70,15 +70,15 @@ private function get_default_email_message() {
7070 /**
7171 * Filter the default failed donation notification email message.
7272 *
73- * @unreleased
73+ * @since 4.14.0
7474 *
7575 * @param string $default_email_body Default email message.
7676 */
7777 return apply_filters ( 'give_default_failed_donation_notification_email ' , $ default_email_body );
7878 }
7979
8080 /**
81- * @unreleased
81+ * @since 4.14.0
8282 *
8383 * @param int $payment_id The ID number of the payment.
8484 * @param string $new_status The status of the payment.
@@ -105,13 +105,13 @@ public function maybe_send_email_notification( $payment_id, $new_status, $old_st
105105 *
106106 * @param int $payment_id Payment ID.
107107 *
108- * @unreleased
108+ * @since 4.14.0
109109 */
110110 do_action ( "give_ {$ this ->config ['id ' ]}_email_notification " , $ payment_id );
111111 }
112112
113113 /**
114- * @unreleased
114+ * @since 4.14.0
115115 *
116116 * @param int $form_id
117117 *
@@ -130,7 +130,7 @@ public function get_email_subject( $form_id = null ) {
130130 /**
131131 * Filters the failed donation notification subject.
132132 *
133- * @unreleased
133+ * @since 4.14.0
134134 */
135135 $ subject = apply_filters ( "give_ {$ this ->config ['id ' ]}_get_email_subject " , $ subject , $ this , $ form_id );
136136
@@ -139,7 +139,7 @@ public function get_email_subject( $form_id = null ) {
139139
140140
141141 /**
142- * @unreleased
142+ * @since 4.14.0
143143 *
144144 * @param int $form_id
145145 *
@@ -156,7 +156,7 @@ public function get_email_message( $form_id = null ) {
156156 /**
157157 * Filter the email message
158158 *
159- * @unreleased
159+ * @since 4.14.0
160160 */
161161 $ message = apply_filters (
162162 "give_ {$ this ->config ['id ' ]}_get_default_email_message " ,
@@ -170,7 +170,7 @@ public function get_email_message( $form_id = null ) {
170170
171171
172172 /**
173- * @unreleased
173+ * @since 4.14.0
174174 *
175175 * @param int $form_id
176176 * @return array
@@ -180,7 +180,7 @@ public function get_email_attachments( $form_id = null ) {
180180 * Filters the failed donation notification email attachments.
181181 * By default, there is no attachment but plugins can hook in to provide one more multiple.
182182 *
183- * @unreleased
183+ * @since 4.14.0
184184 */
185185 $ attachments = apply_filters (
186186 "give_ {$ this ->config ['id ' ]}_get_email_attachments " ,
@@ -193,13 +193,13 @@ public function get_email_attachments( $form_id = null ) {
193193 }
194194
195195 /**
196- * @unreleased
196+ * @since 4.14.0
197197 */
198198 public function setup_email_data () {
199199 /**
200200 * Filters the from name.
201201 *
202- * @unreleased
202+ * @since 4.14.0
203203 */
204204 $ from_name = apply_filters (
205205 'give_failed_donation_from_name ' ,
@@ -211,7 +211,7 @@ public function setup_email_data() {
211211 /**
212212 * Filters the from email.
213213 *
214- * @unreleased
214+ * @since 4.14.0
215215 */
216216 $ from_email = apply_filters (
217217 'give_failed_donation_from_address ' ,
@@ -226,7 +226,7 @@ public function setup_email_data() {
226226 /**
227227 * Filters the failed donation notification email headers.
228228 *
229- * @unreleased
229+ * @since 4.14.0
230230 */
231231 $ headers = apply_filters (
232232 'give_failed_donation_notification_headers ' ,
@@ -239,7 +239,7 @@ public function setup_email_data() {
239239 }
240240
241241 /**
242- * @unreleased
242+ * @since 4.14.0
243243 *
244244 * @param int $payment_id
245245 */
0 commit comments