Support » Plugin: Affiliates » Change Link in Approval Email

  • Resolved 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

    $text = __(
    ‘Congratulations [user_login],<br/>
    Your request to join the Affiliate Program has been approved.<br/>

    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



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



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


    Plugin Author Kento


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


    • This reply was modified 3 months, 3 weeks ago by Kento. Reason: typo
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.