Dieser Benutzer hat keine favorisierten Themen.
Favorisierte Forenthemen
Erstellte Forenthemen
| Status |
Thema
|
Supporter | Stimmen | Beiträge | Aktualität |
|---|---|---|---|---|---|
|
WPML breaks Woo product quick edit form
Gestartet von: ruikaiW
in: English Support
Problem: Please note that this solution might be outdated or not applicable to your specific case. If the problem persists, 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 needed, do not hesitate to open a new support ticket at WPML support forum for further assistance. |
|
0 | 4 | Vor 3 Monaten, 3 Wochen | |
|
how to downgrade ?
Gestartet von: ruikaiW in: Chat Support |
|
0 | 2 | Vor 5 Monaten, 1 Woche | |
|
unexplain/unwanted/weird redirection from one product to another
Gestartet von: ruikaiW
in: English Support
Problem: If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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 needed, please open a new support ticket at our support forum for further assistance. |
|
0 | 2 | Vor 7 Monaten, 2 Wochen | |
|
how to sync publish status for product ?
Gestartet von: ruikaiW
in: English Support
Problem:
function sync_publish_status_across_languages($post_id) {
// Check if this is a valid post type (product) and that the post is not being autosaved
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return;
if ('product' != get_post_type($post_id)) return; // Check for WooCommerce product post type
// Get the current post status
$post_status = get_post_status($post_id);
// Get the default language
$default_language = apply_filters('wpml_default_language', null);
// Get all translations of the post in different languages
$translations = apply_filters('wpml_get_element_translations', null, $post_id, 'product'); // Updated for products
foreach ($translations as $lang => $translation) {
// Skip the default language post (we don't want to update it)
if ($lang === $default_language) continue;
// Get the translation post ID
$translation_post_id = $translation->element_id;
// Update the publish status of the translated post
wp_update_post(array(
'ID' => $translation_post_id,
'post_status' => $post_status
));
}
}
add_action('save_post', 'sync_publish_status_across_languages');
Please note that this solution might be outdated or not applicable to your specific case. If this does not resolve your issue, 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 you still need assistance, please open a new support ticket at WPML support forum. |
|
0 | 9 | Vor 10 Monaten, 1 Woche | |
|
all product categories in one language ends up in 404 error
Gestartet von: ruikaiW in: English Support |
|
0 | 6 | Vor 10 Monaten, 3 Wochen | |
|
Setting administrative language
Gestartet von: ruikaiW in: Chat Support |
|
1 | 2 |
Vor 1 Jahr, 11 Monaten
|
|
|
WPML chat support ticket by ruikaiW – 1701759865
Gestartet von: ruikaiW in: Chat Support |
|
1 | 2 |
Vor 1 Jahr, 11 Monaten
|
|
|
how get linked category IDs of a translated product/post ?
Gestartet von: ruikaiW in: English Support |
2 | 2 | Vor 2 Jahren, 1 Monat |