Woocommerce & Polylang: common comments under product in different languages

I developed a WordPress multilingual site with shop, based on Woocommerce plugin. The task was to make all comments appear under all languages’ versions of a product. Tried a lot of possible solutions and finally came to bare mysql request. File woocommerce/single-product-reviews.php contains the line: wp_list_comments( array( ‘callback’ => ‘woocommerce_comments’, ‘avatar_size’ => 75 ) );… Continue reading Woocommerce & Polylang: common comments under product in different languages

WordPress DB migration from one domain to another

Usually I develop WordPress powered sites on my server and then migrate all to production one. Every time I have the same problem – name of old server is saved in DataBase various tables. It is possible to simplify the process. 1. execute domain name replacement in General settings update wp_options set `option_value` = replace(`option_value`,… Continue reading WordPress DB migration from one domain to another