questions

How to get WooCommerce terms and conditions page URL

Rate this post

I have a multilingual WooCommerce website and I need to display a dynamic link for terms and condition. I know that I can display the privacy policy link like that:

<?php echo get_privacy_policy_url() ?>

Does anyone know how to do it for the terms and conditions page?

 

✔️Solution:

You can use this simple line to get WooCommerce term and condition page URL:

<?php echo get_permalink( wc_terms_and_conditions_page_id() ); ?>

Tested and works.

Leave a Reply

Your email address will not be published.

Back to top button