Show Referral link and social icons on the Orders Thank You page
If you want to show customers referral link with social sharing option on the Thank you page after they make an order, add below code to functions.php.
// Show shortcode in the thank you page function show_referral_link(){ echo "<h2>Refer a friend</h2><p>Refer a friend and earn rewards.</p>"; echo do_shortcode('[WOO_GENS_RAF_ADVANCE guest_text="Text to show when user is not logged in"]'); } add_action('woocommerce_thankyou','show_referral_link');
Of course, don't forget to change guest_text shortcode parameters, which is text that will appear to users that are not logged in.