/** * Get the add-on information for the given event * * @since 1.4 * @param int $event_id The event ID * @param bool $price True to include the add-on price. * @return str $addons Array with add-ons details, or false if no add-ons assigned */ function get_event_addons($event_id, $price = false) { _deprecated_function(__FUNCTION__, '1.4', 'mdjm_list_event_addons()'); return mdjm_list_event_addons($event_id, $price); }
/** * Content tag: event_addons_cost. * The add-ons attached to the event and their cost. * * @param int The event ID. * @return str The add-on names and cost or "No addons are assigned to this event". */ function mdjm_content_tag_event_addons_cost($event_id = '') { if (empty($event_id)) { return; } return mdjm_list_event_addons($event_id, true); }