Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get WooCommerce terms and conditions page URL

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?

like image 895
Aastone Avatar asked Nov 02 '25 18:11

Aastone


1 Answers

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.

Related: How to get "Terms & Conditions" Page ID in WooCommerce?

like image 172
LoicTheAztec Avatar answered Nov 04 '25 10:11

LoicTheAztec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!