• Resolved snaushads

    (@snaushads)


    Hi there,

    I want to change the link that appears to the affiliate when a approval email is sent.

    By Default the URL is [site_url]. I want the url to be [site_url]/affiliate-area.

    right now i have changed the line 179 in lib/core/class-affiliates-notifications.php and changed code as below

    `case self::DEFAULT_AFFILIATE_PENDING_TO_ACTIVE_MESSAGE :
    $text = __(
    ‘Congratulations [user_login],<br/>
    <br/>
    Your request to join the Affiliate Program has been approved.<br/>
    [site_url]/affiliate-area<br/>’,
    ‘affiliates’
    );’

    How do i ensure that this change does not go away on update of plugin ? Should i create a new plugin ? Or child theme with function ? Please advise.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kento

    (@proaktion)

    Hi,

    You shouldn’t modify the plugin’s code directly, rather use this filter to customize the message:

    affiliates_new_affiliate_registration_subject

    See https://docs.itthinx.com/document/affiliates/api/filters/

    The best way to use the filter is to create a small plugin where you implement it.

    Cheers

    Plugin Author Kento

    (@proaktion)

    PS Forgot to mention the filter that actually changes the message:

    affiliates_new_affiliate_registration_message

    • This reply was modified 3 years, 9 months ago by Kento. Reason: typo
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Link in Approval Email’ is closed to new replies.