• Hello!

    Is it just me, or PmproEmail->sendCreditCardExpiringEmail() actually never sends the email? It’s called only from pmpro_cron_credit_card_expiring_warnings() where there is no second parameter with invoice details. So sendCreditCardExpiringEmail exits on condition on line 553 of class.pmproemail.php.

    Also at crons.php line 136 throws a following notice:
    PHP Notice: Undefined variable: e in wp-content/plugins/paid-memberships-pro/scheduled/crons.php on line 136

    The line should probably read
    $send_email = apply_filters(“pmpro_send_credit_card_expiring_email”, true, $euser->user_id);

    Hope I’m not mistaken.

    https://www.ads-software.com/plugins/paid-memberships-pro/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there,

    Thanks for the info. We’re constantly working no the plugin and removing all notices, warnings, etc. is definitely a priority. We always welcome pull requests on our GitHub repo for this kind of stuff as well!

    Thanks,
    Jess

    Thread Starter zdenek.hynek

    (@zdenekhynek)

    Thanks Jess. Created the pull request. The plugin is great btw! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Credit card expiration notification email’ is closed to new replies.