PayPal is a great payment processor that allows anyone to send you money, which you can then send directly to your bank account. In this tutorial, you'll learn how to make a WordPress plugin allowing you to generate a Buy Now button, using a variable shortcode. The main shortcode will have a default value of $50 USD, with the Large size, though you'll be able to overwrite this every time you enter the shortcode; this is known as a variable shortcode.
Step 1
Create a new directory in wp-content/plugins called paypal-buy-now-button-shortcode, and within that, create a file called paypal-buy-now-button-shortcode.php.
Step 2
In order for WordPress to know that this is a plugin, you need to add the following header information to the beginning of your new PHP file.
Comments
Be the first to write a comment
You must me logged in to write a comment.