remove 'winkel' from code
This commit is contained in:
@@ -159,8 +159,10 @@ class PrijsPerPostcode
|
|||||||
!is_shop()
|
!is_shop()
|
||||||
) {
|
) {
|
||||||
if (!verify_pppr_cookie_string()) {
|
if (!verify_pppr_cookie_string()) {
|
||||||
wp_redirect(home_url("/winkel/"));
|
wp_redirect($this->get_shop_url());
|
||||||
exit();
|
exit();
|
||||||
|
}else{
|
||||||
|
update_expire_pppr_cookie();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -227,6 +229,12 @@ class PrijsPerPostcode
|
|||||||
}
|
}
|
||||||
return $translated_text;
|
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();
|
new PrijsPerPostcode();
|
||||||
|
|||||||
Reference in New Issue
Block a user