Skip to content

Commit d7eb3d6

Browse files
add code snippet for running checkbox label text through wpml_translate_single_string
1 parent 0819f13 commit d7eb3d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
add_filter('mc4wp_integration_checkbox_label', function ($text, $integration) {
4+
return apply_filters('wpml_translate_single_string', $text, 'mailchimp-for-wp', "{$integration->name} checkbox label");
5+
}, 10, 2);

0 commit comments

Comments
 (0)