/** * register_plugin_shortcode_totalfans * * handle [easy-total-fans] shortcode * @since 3.4 * */ public function register_plugin_shortcode_totalfans($attrs) { $counters = $this->get_followers(); $total = 0; foreach ($counters as $network => $follow_count) { if (intval($follow_count) > 0) { $total += $follow_count; } } echo ESSBSocialFollowersCounterDraw::followers_number($total); }