/** * Returns the total income for an event. * * @since 1.3 * @param int $event_id The event ID. * @return int|str The income for the event. */ function mdjm_get_event_income($event_id) { if (empty($event_id)) { return false; } $event = new MDJM_Event($event_id); return $event->get_total_income(); }