Change the account share-link text

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
}
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.