Hardcoded WooCommerce page URLs / endpoints
-
Hello,
Your plugin is nof flexible in case of multilingual sites (slugs)…
You should implement stuff like that
get_permalink(get_option("woocommerce_myaccount_page_id"))
to get proper WC URLs instead of those lame hardcored URLs →
home_url()."/my-account/";
Just a tip ??
- The topic ‘Hardcoded WooCommerce page URLs / endpoints’ is closed to new replies.