Viewing 1 replies (of 1 total)
  • Plugin Contributor Johan Steen

    (@artstorm)

    @thall1908:

    Adding a drop down menu to the widget is a bit too special functionality to include in the plugin by default imho. But what I did, was that I added a filter for the purpose in the latest update of the plugin (version 1.6).

    With the filter it’s simple to add such a functionality yourself, which will survive plugin updates.

    Here’s a piece of code you can add to your functions.php for your theme to get you started.

    function paypal_purpose( $purpose ) {
      return '
        <select name="item_name">
          <option value="Donation Purpose 1">Donation Purpose 1</option>
          <option value="Donation Purpose 2">Donation Purpose 2</option>
        </select>
      ';
    }
    add_filter( 'paypal_donations_purpose_html', 'paypal_purpose' );

    Cheers,
    Johan

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: PayPal Donations] Add Drop Down Menu to Widget’ is closed to new replies.