Created
November 17, 2017 17:29
-
-
Save rynaldos-zz/0bee7d84a83c5b52096c747c19d088c0 to your computer and use it in GitHub Desktop.
[WooCommerce 3.0+] Custom terms and conditions link (external source)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_terms_and_conditions_link( $link ) { | |
// replace link below with your custom terms and conditions url | |
return 'https://google.com'; | |
} | |
add_filter( 'woocommerce_get_terms_page_permalink', 'custom_terms_and_conditions_link' ); | |
// This snippet can be used alongside https://gist.github.com/rynaldos/4993f8515580601856d51fccf974f8de (force terms and conditions to open in a new tab) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment