/** * Add social sharing to purchase confirmation header */ function affwp_edd_purchase_confirmation_sharing() { if (function_exists('edd_is_success_page') && !edd_is_success_page()) { return; } echo affwp_share_box('', 'I just purchased AffiliateWP, the best affiliate marketing plugin for WordPress!'); }
/** * Share purchase shortcode */ function affwp_show_sharing_buttons_after_purchase($atts, $content = null) { $success_page = edd_get_option('success_page') ? is_page(edd_get_option('success_page')) : false; // return if no affiliate was rewarded via the select menu if (!$success_page) { return; } $content = affwp_share_box('', 'I just purchased AffiliateWP, the best affiliate marketing plugin for WordPress!'); return $content; }
<section id="sign-up" class="section home subscribe"> <h1>We’re only just getting started</h1> <h2>Sign up below and we'll keep you in the loop</h2> <div class="mailing-list"> <div class="wrapper box"> <?php if (function_exists('gravity_form')) { gravity_form(1, false, false, false, '', true); } ?> </div> </div> </section> <section class="section home share" id="sharing-home"> <?php echo affwp_share_box('', 'AffiliateWP - The best affiliate marketing plugin for WordPress'); ?> </section> <?php get_footer();