How to remove Refer a Friend Tab from My Account page
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
add_action('wp','wpgens_custom_account_tabs'); 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); }