Created
February 27, 2018 00:00
-
-
Save carlosonweb/355dc10b87e86737d1e8acdbe5c22a7a to your computer and use it in GitHub Desktop.
Wrap in Custom Shortcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_shortcode( 'paypal_buy_now' , function(){ | |
ob_start(); | |
?> | |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input name="cmd" type="hidden" value="_s-xclick" /> <input name="hosted_button_id" type="hidden" value="FPVL6DHVC9KE8" /> | |
<select name="os0"> | |
<option value="Single Line">Single Line $25.00 USD</option> | |
<option value="1/4 Page (4.5" x 2" or 2.25" x 4")">1/4 Page (4.5" x 2" or 2.25" x 4") $60.00 USD</option> | |
<option value="1/2 Page (4.5" x 4")">1/2 Page (4.5" x 4") $115.00 USD</option> | |
<option value="3/4 Page (4.5" x 6")">3/4 Page (4.5" x 6") $165.00 USD</option> | |
<option value="Full Page (4.5" x 8")">Full Page (4.5" x 8") $225.00 USD</option> | |
<option value="Full Page Cover (4.5" x 8")">Full Page Cover (4.5" x 8") $275.00 USD</option> | |
</select><input name="currency_code" type="hidden" value="USD" /> | |
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" type="image" /> | |
<img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="" width="1" height="1" border="0" /></form> | |
<?php | |
return ob_get_clean(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment