Create a PayPal Donation Short Code Without Using Any Plugin

Added By: Prem Tiwari | Last Updated: | In: WordPress, WordPress Snippets


Sometime you need to add the PayPal donation button in your WordPress website to allow your website visitors to donate some amount to you by using the PayPal Payment gateway.

In this tutorial, I will share some piece of code which will allow you to create a shortcode for PayPal donation button in your WordPress sites.

PayPal donate button

Then, you use this [donate]My Text Here[/donate] shortcode in your posts or pages. You can also use it in your template file by using below code:


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


, , , ,

Share this post!