charitable_get_current_url(), 'label' => __( 'Donate', 'charitable' ), 'type' => 'button', // can also be 'link'. 'css' => 'charitable-button', 'new_tab' => false, 'campaign' => 0, ); if ( isset( $atts['campaign'] ) ) { $campaign_id = (int) $atts['campaign']; if ( $campaign_id > 0 ) { $atts['url'] = charitable_get_permalink( 'campaign_donation', array( 'campaign_id' => $campaign_id ) ); } } $args = shortcode_atts( $defaults, $atts, 'charitable_donate_button' ); ob_start(); charitable_template( 'shortcodes/donate-button.php', $args ); /** * Filter the output of the login shortcode. * * @since 1.8.2 * * @param string $content Shortcode output. */ return apply_filters( 'charitable_donate_button_shortcode', ob_get_clean() ); } } endif;