|
10 | 10 | * @category Class
|
11 | 11 | */
|
12 | 12 | class WC_Subscriptions_Email_Notifications {
|
| 13 | + |
| 14 | + public static string $offset_setting_string = '_customer_notifications_offset'; |
| 15 | + |
13 | 16 | public static function init() {
|
14 | 17 |
|
15 | 18 | add_action( 'woocommerce_email_classes', __CLASS__ . '::add_emails', 10, 1 );
|
@@ -205,13 +208,13 @@ public static function add_settings( $settings ) {
|
205 | 208 | 'type' => 'title',
|
206 | 209 | 'id' => WC_Subscriptions_Admin::$option_prefix . '_customer_notifications',
|
207 | 210 | /* translators: Link to WC Settings > Email. */
|
208 |
| - 'desc' => sprintf( __( 'To enable and disable notification, visit the <a href="%s">Email settings</a>.', 'woocommerce-subscriptions' ), admin_url( 'admin.php?page=wc-settings&tab=email' ) ), |
| 211 | + 'desc' => sprintf( __( 'To enable and disable individual notifications, visit the <a href="%s">Email settings</a>.', 'woocommerce-subscriptions' ), admin_url( 'admin.php?page=wc-settings&tab=email' ) ), |
209 | 212 | ),
|
210 | 213 | array(
|
211 |
| - 'name' => __( 'Hour Offset', 'woocommerce-subscriptions' ), |
212 |
| - 'desc' => __( 'How many hours in before the event should the notification be sent.', 'woocommerce-subscriptions' ), |
| 214 | + 'name' => __( 'Time Offset', 'woocommerce-subscriptions' ), |
| 215 | + 'desc' => __( 'How long before the event should the notification be sent.', 'woocommerce-subscriptions' ), |
213 | 216 | 'tip' => '',
|
214 |
| - 'id' => WC_Subscriptions_Admin::$option_prefix . '_customer_notifications_offset', |
| 217 | + 'id' => WC_Subscriptions_Admin::$option_prefix . self::$offset_setting_string, |
215 | 218 | 'desc_tip' => true,
|
216 | 219 | 'type' => 'relative_date_selector',
|
217 | 220 | 'placeholder' => __( 'N/A', 'woocommerce-subscriptions' ),
|
|
0 commit comments