stat_instance = Affiliate_Links_Pro_Stats::get_instance();
add_shortcode( 'af_links_popular', array( $this, 'popular_links' ) );
add_shortcode( 'af_links_recent', array( $this, 'recent_links' ) );
}
function popular_links( $atts ) {
$options = shortcode_atts( array(
'title' => __( 'Popular Links', 'affiliate-links' ),
'number' => 5,
'category' => 0,
), $atts );
?>
stat_instance->get_popular_links( $options ) ?>
__( 'Recent Links', 'affiliate-links' ),
'number' => 5,
'category' => 0,
), $atts );
?>
stat_instance->get_recent_links( $options ) ?>