membership_id, $order->user_id ); } add_action("pmpro_subscription_payment_failed", "my_pmpro_subscription_payment_failed");