이 사용자는 즐겨찾는 주제가 없습니다.
즐겨찾는 포럼 주제
생성한 포럼 주제
상태 |
주제
|
후원자 | 의견 | 게시물 | 최신 |
---|---|---|---|---|---|
Duplicated product to another language
시작: Bahij
위치: English Support
Problem: global $wpdb;<br />$table_name = $wpdb->prefix . 'icl_translations';<br />$product_ids = $wpdb->get_col("SELECT element_id FROM $table_name WHERE element_type = 'post_product'");<br />foreach ($product_ids as $product_id) {<br /> do_action('wpml_make_post_duplicates', $product_id);<br /> do_action('wpml_set_element_translation', 'post_product', $product_id, [<br /> apply_filters('wpml_default_language', NULL) => $product_id,<br /> apply_filters('wpml_secondary_language', NULL) => $product_id,<br /> ]);<br />} This code should be triggered with a CTA for test purposes. If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum. |
|
2 | 3 | 11 월, 2 주 전에 | |
YITH Store Locator Duplicate content/locations
시작: Bahij 위치: English Support |
|
2 | 6 | 1 년, 2 월 전에 | |
URL Translation | Multisite Subfolder
시작: Bahij 위치: English Support |
|
2 | 4 | 4 년, 9 월 전에 |