Skip to content

Commit add5fc2

Browse files
add setting that controls the message text for when a submission is marked as spam
1 parent 261c798 commit add5fc2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

config/default-form-messages.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@
3737
'type' => 'error',
3838
'text' => esc_html__('Please select at least one list.', 'mailchimp-for-wp'),
3939
],
40+
'spam' => [
41+
'type' => 'error',
42+
'text' => esc_html__('Your submission was marked as spam.', 'mailchimp-for-wp'),
43+
],
4044
];

includes/forms/views/tabs/form-messages.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@
8080
</td>
8181
</tr>
8282

83+
<tr valign="top">
84+
<th scope="row"><label for="mc4wp_form_message_spam"><?php echo esc_html__('Spam', 'mailchimp-for-wp'); ?></label></th>
85+
<td>
86+
<input type="text" class="widefat" id="mc4wp_form_message_spam" name="mc4wp_form[messages][spam]" value="<?php echo esc_attr($form->messages['spam']); ?>" />
87+
<p class="description"><?php echo esc_html__('The text that shows when a submission is marked as spam.', 'mailchimp-for-wp'); ?></p>
88+
</td>
89+
</tr>
90+
8391
<?php do_action('mc4wp_admin_form_after_messages_settings_rows', [], $form); ?>
8492

8593
<tr valign="top">

0 commit comments

Comments
 (0)