READ FIRST: This code needs to be added at the end of the functions.php file. If you are familiar with editing functions.php, feel free to continue reading. If you haven’t done this before, adding this code in the wrong place might bring the site down and the only way to access it is by editing functions.php file again via FTP. Feel free to contact us if you need help!
WooCommerce 9.8 introduced a bug where lots of WooCommerce admin analytics script are loaded on every page of WordPress, which affects whole backend, unfortunately it also affects all plugins with React backend, we sent a fix to WooCommerce team here https://github.com/woocommerce/woocommerce/issues/57147 .It will be resolved in the next WooCommerce update, until then, please add this code to functions.php to make our plugins backend start working again.
add_filter('woocommerce_navigation_is_connected_page', function ($is_connected, $page_id) {
$currentScreen = get_current_screen();
$screenID = $currentScreen->id;
if ($screenID === "woocommerce_page_gens-raf" || $screenID === "woocommerce_page_wpgens-points-program" || $screenID === "marketing_page_wpgens-utm-tracking" || $screenID === "marketing_page_wpgens-st") {
return true;
}
return $is_connected;
}, 10, 2);
As soon as WooCommerce sends new update, you should remove this code. Sorry for the inconvinence but this error affects every plugin that has React running in the background. Also, if you see currently your WordPress backend a bit slower than usual, this is the reason.