Replace the link label shown in the customer’s referral account area.
Developer note:
Add custom PHP in a small custom plugin or child theme, and test it on a staging site before production. This example requires ongoing maintenance when extension APIs change.
functions.php
<?php
add_filter( 'automatewoo/referrals/account_tab_share_link_text', 'my_store_referral_share_link_text' );
/**
* Set the referral share-link text.
*
* @return string
*/
function my_store_referral_share_link_text() {
return __( 'Share your referral link', 'my-store' ); // phpcs:ignore WordPress.WP.I18n.TextDomainMismatch
}