WPML

問題の概要

Premmerce Permalink Manager for WooCommerceとElementorを使用している場合、新規商品を作成するか既存の商品を編集してカスタムの商品パーマリンク構造を設定すると、Elementorがセーフモードで開くことに気づくでしょう。

回避策

Please make a full backup of your site before you start.

Add this code to your theme’s functions.php file. It stops WPML from redirecting Elementor’s preview request; normal visits to the old product address still redirect.

// WPML workaround for compsupp-6358: let the Elementor preview load without WPML's redirect.
add_filter( 'wpml_is_redirected', function ( $redirect ) {
	return isset( $_GET['elementor-preview'] ) ? false : $redirect;
} );

すべての既知の問題