</th> </tr> </thead> <tbody> <tr> <td><?php echo affwp_count_referrals(affwp_get_affiliate_id(), 'unpaid'); ?> </td> <td><?php echo affwp_count_referrals(affwp_get_affiliate_id(), 'paid'); ?> </td> <td><?php echo affwp_count_visits(affwp_get_affiliate_id()); ?> </td> <td><?php echo affwp_get_affiliate_conversion_rate(affwp_get_affiliate_id()); ?> </td> </tr> </tbody> </table> <?php do_action('affwp_affiliate_dashboard_after_counts', affwp_get_affiliate_id()); ?> </div>
/** * Show the total number of visits an affiliate has had * * [affiliate_visits] * * @since 1.1 */ function affiliate_visits($atts, $content = null) { if (!(affwp_is_affiliate() && affwp_is_active_affiliate())) { return; } $content = affwp_count_visits(affwp_get_affiliate_id()); return do_shortcode($content); }