
Inserting a Custom Link on WooCommerce’s Default Sign-Up Page
- September 7, 2016
- Leave a comment
WooCommerce is one of the best e-commerce solutions available for WordPress. Its free and easy to use; comes with tons of actions and filters that enhances its flexibility. Developers can use these hooks to achieve almost any custom functionality they desire.
WooCommerce consists of a default sign-up page. You may want to add a custom link for example, you want to link a vendor sign-up form that exists on another page of your website. Using woocommerce_register_form_end hook, you can easily insert a link after the sign-up form.
You just need to add the following code in your Theme or Child Theme’s functions.php file to put a vendor sign-up form link after the default sign-up form of WooCommerce:
1 2 3 4 |
function pt_vendor_signup_link() { echo '<a href="' . get_site_url() . '/vendor-application">Vendor Sign Up</a>'; } add_action('woocommerce_register_form_end', 'pt_vendor_signup_link'); |
User Comments