Ejemplo n.º 1
0
/**
 * Pay form content
 */
function pronamic_pay_form_the_content($content)
{
    if (is_singular('pronamic_pay_form') && 'pronamic_pay_form' === get_post_type()) {
        $content .= pronamic_pay_get_form(get_the_ID());
    }
    return $content;
}
Ejemplo n.º 2
0
 /**
  * Shortcode form
  *
  * @see https://github.com/WordImpress/Give/blob/1.1/includes/shortcodes.php#L39-L65
  * @see https://github.com/WordImpress/Give/blob/1.1/includes/forms/template.php#L18-L140
  */
 public function shortcode_form($atts)
 {
     $atts = shortcode_atts(array('id' => null), $atts, 'pronamic_payment_form');
     $id = $atts['id'];
     return pronamic_pay_get_form($id);
 }