Need help implementing purpose filter
-
Hi,
I am trying to help a local non profit with their wordpress site using this plugin, but am inexperienced in this.
I want to add a dropdown to allow users to select a purpose for a donation.
I see the sample code to do this:// Add a drop down menu for donation purposes
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’ );I’ve been unable to figure out how to implement this. I don’t know where to put this code to create the dropdown on a single donate page. When I try to edit the Theme’s functions.php file, it gives an error. I believe this is a wordpress.com hosted site.
Can someone give me basic instructions on how to implement this?
Thanks in Advance
Andrew
- The topic ‘Need help implementing purpose filter’ is closed to new replies.