このユーザーにはお気に入りのトピックがありません。
お気に入りのフォーラムトピック
作成したフォーラムトピック
ステータス |
トピック
|
サポーター | 声 | 投稿 | 新着度 |
---|---|---|---|---|---|
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ヶ月前 |