GithubHelp home page GithubHelp logo

Comments (3)

michaelbeil avatar michaelbeil commented on June 26, 2024

A member reported this in ticket 359121 (moderators only).

When using the Multiple Memberships Per User Plugin, and changing a user’s membership level or adding a membership from User Admin panel, notification emails are not being sent to the user. Test emails however from the Member email settings however, do seem to be working.

from pmpro-multiple-memberships-per-user.

ipokkel avatar ipokkel commented on June 26, 2024

Moderators only: https://www.paidmembershipspro.com/forums/topic/emails-dont-send-when-admin-cancels-membership/

The sendAdminChangeAdminEmail and sendAdminChangeEmail parts of the profile.php are commented out here.

// $subscription_id = -1;
// foreach($old_levels as $checklevel) {
// if($checklevel->id == $leveltodel) {
// $subscription_id = $checklevel->subscription_id;
// break;
// }
// }
// $wpdb->query("UPDATE $wpdb->pmpro_memberships_users SET status ='admin_cancelled', enddate ='".current_time('mysql')."' WHERE id=$subscription_id");
// if(is_array($_REQUEST['cancel_subscription']) && array_key_exists($arraykey, $_REQUEST['cancel_subscription']) && !empty($_REQUEST['cancel_subscription'][$arraykey])) {
// $other_order_ids = $wpdb->get_col("SELECT id FROM $wpdb->pmpro_membership_orders WHERE user_id = '" . $user_id . "' AND status = 'success' AND membership_id = $leveltodel ORDER BY id DESC");
//
// foreach($other_order_ids as $order_id)
// {
// $c_order = new MemberOrder($order_id);
// $c_order->cancel();
// }
// }
// //email to admin
// $pmproemail = new PMProEmail();
// $pmproemail->sendAdminChangeAdminEmail(get_userdata($user_id));
//
// //send email
// if(is_array($_REQUEST['send_admin_change_email']) && array_key_exists($arraykey, $_REQUEST['send_admin_change_email']) && !empty($_REQUEST['send_admin_change_email'][$arraykey])) {
// //email to member
// $pmproemail = new PMProEmail();
// $pmproemail->sendAdminChangeEmail(get_userdata($user_id));
// }

from pmpro-multiple-memberships-per-user.

andrewlimaza avatar andrewlimaza commented on June 26, 2024

I think this gets disabled as the function needs to support MMPU, which it currently doesn't do.

from pmpro-multiple-memberships-per-user.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.