Created
July 20, 2018 14:33
-
-
Save amielucha/4f8df0aa0e56c7150e9121480f6886bf to your computer and use it in GitHub Desktop.
Display links for WooCommerce Terms and Conditions and WordPress Privacy Policy
This file contains hidden or 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
| <?php | |
| // Get T&C page (requires WC) | |
| if ( function_exists('wc_get_page_id') ) { | |
| $terms_page = wc_get_page_id( 'terms' ); | |
| if ( $terms_page > 0 ) | |
| echo '<a href="' . get_the_permalink( $terms_page ) . '">' . get_the_title( $terms_page ) . '</a>'; | |
| } | |
| if ( function_exists( 'the_privacy_policy_link' ) ) | |
| the_privacy_policy_link( '<span class="lightseek-pp">', '</span>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment