- 状态
- 已解决
- 相关插件/主题
- Elementor
- 主题标签
- Compatibility
问题概述
在安装了 WooCommerce 的 WordPress 网站中,如果您尝试批量自动翻译 Elementor 模板,您可能会遇到翻译过程卡住并导致部分模板未翻译的问题。
临时解决方法
在继续操作之前,请确保对您的站点进行完整备份。
- 将以下代码添加到您的 functions.php 文件中。
add_action( 'rest_api_init', function () { if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) && ! function_exists( 'wc_print_notices' ) ) { function wc_print_notices() {} } } );