WordPress.org

Forums

PayPal Donations
Include username of logged-in users (1 post)

  1. uncovery
    Member
    Posted 3 years ago #

    Can you make a method / field that includes the username of the donator if he/she is logged in?

    I currently modified the code to read:

    if ($purpose) {
    if (is_user_logged_in()) {
    global $current_user;
    get_currentuserinfo();
    $purpose .= " (User " . $current_user->user_login . ')';
    }
    $paypal_btn .= apply_filters('paypal_donations_purpose_html', '<input type="hidden" name="item_name" value="' .$purpose. '" />');
    }

    Would be great if you could do something like that. Thanks for the great work!

    http://wordpress.org/extend/plugins/paypal-donations/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PayPal Donations
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic