/** * Set the destination address. * * @since 1.4 * @param int|arr|obj $destination An event ID or object, or a venue post ID or an address array. * @return void */ public function set_destination($dest) { if (is_array($dest)) { // Address array is passed $dest = implode(',', array_filter($dest)); $this->destination_address = $dest; } elseif (is_object($dest)) { // Event object is passed $mdjm_event = new MDJM_Event($event); $this->destination_address = $this->get_venue_address($mdjm_event->get_venue_id()); } elseif (is_numeric($dest)) { // Event or Venue ID is passed $this->destination_address = $this->get_venue_address($dest); } }
/** * Content tag: venue_telephone. * The event venue phone number. * * @param * * @return str Phone number of the event venue. */ function mdjm_content_tag_venue_telephone($event_id = '') { if (empty($event_id)) { return; } $mdjm_event = new MDJM_Event($event_id); return mdjm_get_event_venue_meta($mdjm_event->get_venue_id(), 'phone'); }