Created
May 10, 2022 11:54
Star
You must be signed in to star a gist
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
/** | |
* Create shortcode for donate box. | |
* | |
* @since 1.0 | |
*/ | |
function md_child_donate_shortcode( $atts ) { | |
ob_start(); | |
?> | |
<form action="https://www.paypal.com/donate" method="post" target="_top" class="text-center mb-half"> | |
<input name="hosted_button_id" type="hidden" value="23NQ9H5U7CMPJ" /> | |
<input title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" name="submit" src="https://www.lilienbrown.net/wp-content/uploads/2022/04/jan_ed_fund_logo2.png" type="image" /> | |
<p><button class="button button-arrow">Donate now</button></p> | |
</form> | |
<?php return ob_get_clean(); } | |
add_shortcode( 'donate_now', 'md_child_donate_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment