-1, 'fields' => 'ids', ) )->found_posts; $charitable_campaigns_text = 1 === $charitable_campaigns_count ? __( 'Campaign', 'charitable' ) : __( 'Campaigns', 'charitable' ); /** * Filter the donation stats to show. * * @since 1.5.0 * * @param array $donation_stats The default stats to show. * @param array $view_args All arguments passed to the view. */ $charitable_donation_stats = apply_filters( 'charitable_donation_stats', array( 'campaign_count' => array( 'amount' => $charitable_campaigns_count, 'description' => $charitable_campaigns_text, ), 'donated' => array( 'amount' => charitable_format_money( charitable_get_table( 'campaign_donations' )->get_total() ), 'description' => __( 'Donated', 'charitable' ), ), 'donor_count' => array( 'amount' => charitable_get_table( 'donors' )->count_donors_with_donations(), 'description' => __( 'Donors', 'charitable' ), ), ), $view_args ); ?>