/** * Add your own fields to the event editor and show them on the event page. * * Sugar Calendar has no custom-fields UI. This adds one: edit the array in * sc_snippets_custom_event_fields() and each entry becomes a field…Continue reading
/** * Add custom content before or after the venue details wrapper. * * `sc_venue_details_before` fires outside and above the * .sc-venue-details container. * * `sc_venue_details_after` fires below the container and is * where related events are rendered by default…Continue reading
/** * Replace the default venue details renderer with a custom layout. * * The default sc_venue_details() function has a hardcoded field order * (address, city, state, country, postal code, phone, website, map, content). * Unlike speakers, there is no…Continue reading
/** * Display the venue featured image above the venue details. * * The venue rendering has no built-in featured image output. * This hooks into `sc_venue_details` at priority 5 (the default * sc_venue_details() function runs at priority 10) to…Continue reading
/** * Card layout for speaker pages. * * Replaces Sugar Calendar’s own speaker details renderer with a card design: * hero image, role, contact pills, social badges, then the bio. The styles are * printed inline, so there is…Continue reading
/** * Add custom content before or after the speaker details wrapper. * * `sc_speaker_details_before` fires outside and above the * .sc-speaker-details container. Use it for banners, notices, * or breadcrumbs that should sit above the entire speaker block. *…Continue reading
/** * Customize the speaker detail field labels and meta keys. * * Use this to rename labels (e.g. “Title” -> “Role”) or map * fields to different meta keys if you store speaker data differently. * * Hook: sc_speaker_details_data_key_pair…Continue reading
/** * Reorder the speaker detail fields. * * The default order is: title, website, email, phone, social_links. * This snippet changes it to: title, phone, email, website, social_links. * * Hook: sc_speaker_details_data_order (filter) * File: sugar-calendar/src/Pro/Features/Speakers/Frontend/Singular.php:164 * Since: Sugar…Continue reading
/** * Show the speaker featured image above the speaker detail fields. * * Sugar Calendar renders the detail fields on `sc_speaker_details` at priority 10, * so hooking at 5 puts the image first. Requires Sugar Calendar Pro 3.7.0+. */…Continue reading