maximbelenkii
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Multilang - Translation and Multilingual Plugin] Yoast seo sitemaps@dmitriy1993 , Hi! I’m facing the same problem. You’re right – in Yoast Seo, the hook deletes all translations at once, but some specific translation cannot be deleted. I think this is a Yoast Seo problem. I solved the problem this way – I removed the sitemap generation from Yoast and installed the XML Sitemap Generator for Google plugin. I hope this helps you.
I found a slightly different way to work around this problem.
Hi!
After upgrading to the newest version, the problem did not go away completely, maybe it was caused by some additional plugins, but the code below helped me solve the problem completely:<?php function save_product_on_publish( $post_id, $post, $update ) { if ( 'product' !== $post->post_type ) { return; } $product = wc_get_product( $post_id ); $product->save(); } add_action( 'wp_insert_post', 'save_product_on_publish', 10, 3 ); ?>
I have a plugin that adds products from another commodity accounting system, all the necessary parameters (such as prices, prices of variations) are saved to the database, but are displayed in the table in the admin panel only after being saved again.
Problem solved!
- This reply was modified 1 year, 7 months ago by maximbelenkii.
It works great! Thanks!
Additionally for myself I used:$uploadfile = $posted_data['your-upload-name']; $uploadfilevar = implode("\n\n", $uploadfile);
Forum: Plugins
In reply to: [New Order Notification for Woocommerce] PHP errorAfter the new order arrived, the problem disappeared. However, it is unclear why it suddenly appeared, without any special changes on the site hosting