This topic has 3 replies, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #9806
     gideon1210
    Participant

    If you change a members expiry on paid memberships pro how do you change it so they dont get an email explaining the change of expiry

    #9927
     Abe
    Keymaster

    From their site

    The code recipe below turns off this user notification (admin_change.html) You can turn off additional user notification emails by changing or adding to line 6.

    COPY CODE
    
    /*
    Disable the "Admin Change" emails in Paid Memberships Pro
    */
    function my_pmpro_email_recipient($recipient, $email)
    {
    if($email->template == "admin_change" || $email->template == "admin_change_admin") //could check for a different template here
    $recipient = NULL;
    return $recipient;
    }
    add_filter("pmpro_email_recipient", "my_pmpro_email_recipient", 10, 2);
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9984
     gideon1210
    Participant

    What file do i change this in is it paid-memberships-pro.php

    #10097
     Abe
    Keymaster

    You just add that code to your functions.php file inside the theme folder

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?