Skip to content

Instantly share code, notes, and snippets.

@fervous
Forked from bentasm1/functions.php
Created September 3, 2016 04:18
Show Gist options
  • Save fervous/69b9c1adecea3bea09d395713d553dd4 to your computer and use it in GitHub Desktop.
Save fervous/69b9c1adecea3bea09d395713d553dd4 to your computer and use it in GitHub Desktop.
WC Vendors Pro - Quick n Dirty Terms Page for Customers
/* WC Vendors Pro - A quick action for showing a string of text on the
* my account page for a general terms and conditions for all users
* not just vendors. */
add_action( 'woocommerce_register_form', 'wcvendors_extra_myaccount_text' );
function wcvendors_extra_myaccount_text() {
echo '<strong>Important</strong> -- By registering to this site you agree to our <a href="/whatever/" target="top">General Terms and Conditions</a>.';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment