- 상태
- 개발자가 해결함
- 관련 플러그인/테마
- MC4WP: Mailchimp for WordPress
- 주제 태그
- Compatibility
문제 개요
WooCommerce용 [MC4WP] – Mailchimp for WordPress 통합은 WPML의 문자열 번역에 번역이 올바르게 표시되더라도 프런트엔드에서 번역된 결제 확인란 레이블을 표시하지 않습니다.
임시 해결 방법
진행하기 전에 사이트의 전체 사이트 백업을 완료했는지 확인하세요.
- …/wp-content/plugins/mailchimp-for-wp/includes/integrations/class-integration.php 파일을 여세요.
- 168번째 줄을 찾으세요.
- 다음을:
public function get_label_text() { $integration = $this; $label = $this->options['label']; if (empty($label)) { $default_options = $this->get_default_options(); $label = $default_options['label']; }
- 다음으로 교체하세요:
public function get_label_text() { $integration = $this; $label = $this->options['label']; if (empty($label)) { $default_options = $this->get_default_options(); $label = __( $default_options['label'], 'mailchimp-for-wp' ); } else { do_action( 'wpml_register_single_string', 'mailchimp-for-wp', 'Checkout Label', $label ); $label = apply_filters( 'wpml_translate_single_string', $label , 'mailchimp-for-wp', 'Checkout Label' ); }