/** * Display the total amount donated to the campaign. * * @return string * @access public * @since 1.1.0 */ public function get_campaign_donated_amount() { if (!$this->has_valid_campaign()) { return ''; } return charitable()->get_currency_helper()->get_monetary_amount($this->campaign->get_donated_amount()); }
/** * Display the total amount donated to the campaign. * * @return string * @access public * @since 1.1.0 */ public function get_campaign_donated_amount() { if (!$this->has_valid_campaign()) { return ''; } return charitable_format_money($this->campaign->get_donated_amount()); }