Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Create shortcode for donate box.
* @since 1.0
function md_child_donate_shortcode( $atts ) {
<form action="" 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="" type="image" />
<p><button class="button button-arrow">Donate now</button></p>
<?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