remove 'winkel' from code

This commit is contained in:
Remo Zaros
2026-06-26 18:28:41 +02:00
parent ab97611783
commit 0b467752fb

View File

@@ -159,8 +159,10 @@ class PrijsPerPostcode
!is_shop()
) {
if (!verify_pppr_cookie_string()) {
wp_redirect(home_url("/winkel/"));
wp_redirect($this->get_shop_url());
exit();
}else{
update_expire_pppr_cookie();
}
}
}
@@ -227,6 +229,12 @@ class PrijsPerPostcode
}
return $translated_text;
}
public function get_shop_url () {
return (function_exists('wcml_get_store_url'))
? wcml_get_store_url() // WPML WooCommerce Multilingual
: get_permalink(wc_get_page_id('shop')); // Fallback
}
}
new PrijsPerPostcode();