How to remove Refer a Friend Tab from My Account page

READ FIRST: This code needs to be added at the end of the functions.php file. If you are familiar with editing functions.php, feel free to continue reading. If you haven't done this before, adding this code in wrong place might bring the site down and the only way to access it is by editing functions.php file again via FTP. Feel free to contact us if you need help!

In case you are using the shortcode on my account page, you might want to remove Refer a friend tab from showing. In that case, add below code to function.php

function wpgens_custom_account_tabs(){
	$gens_plugin = WPGens_RAF::instance();
	remove_filter( 'woocommerce_account_menu_items', array($gens_plugin->my_account,'gens_account_menu_item'),10);

Still need help? Contact Us Contact Us