| 开发者 | Blackstar1991 |
|---|---|
| 更新时间 | 2026年7月19日 00:38 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
/wp-json/gigroute-events/v1/events
The endpoint returns published events and supports event discovery, external frontends, mobile apps, landing pages, and custom JavaScript interfaces.
Supported query examples:
/wp-json/gigroute-events/v1/events
/wp-json/gigroute-events/v1/events?mode=upcoming
/wp-json/gigroute-events/v1/events?mode=all&year=2026
/wp-json/gigroute-events/v1/events?mode=all&year=2026&month=4
/wp-json/gigroute-events/v1/events?country=ukraine&city=kyiv&event_type=concert
/wp-json/gigroute-events/v1/events?start=2026-04-01&end=2026-04-30
/wp-json/gigroute-events/v1/events?mode=all&page=2&per_page=20
The response includes pagination data and event items. Empty values are removed from public event responses where possible. Event edit meta is registered for REST access, so block editor saves, revisions, integrations, and the classic editor all continue to work with the same underlying post meta keys instead of duplicated values.
SEO and marketing benefits
GigRoute Events helps structure event content in a way that supports marketing and organic discovery.
You can create dedicated content around live shows, city pages, tour schedules, artist announcements, and ticket calls to action. The plugin separates event metadata from normal post content, which makes it easier to reuse event information across blocks, templates, REST responses, filters, and promotional sections.
For SEO-focused event pages, you can use event titles, excerpts, content, featured images, event taxonomies, and location terms to create relevant pages around concerts, tours, stand-up shows, and entertainment events.
For events that should appear in lists but should not have a public single page, GigRoute Events includes event visibility controls. You can hide the direct event page and prevent search indexing while still keeping the event available in public lists and REST summaries when published.
gigroute-events folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen.GigRoute Events is designed for bands, musicians, artists, performers, stand-up comedians, show business teams, event promoters, venues, and entertainment websites that need to publish event listings and promote ticket links.
Yes. Each event can include a Ticket URL. The frontend event list can display a "Buy tickets" link when ticket links are enabled in the block settings.
Yes. GigRoute Events keeps event data in one set of post meta keys and uses compatible editor handling so the event fields remain available in block-editor and classic-editor workflows without duplicating stored values.
Yes. The plugin includes a dynamic Gutenberg block for displaying event lists. The block supports event modes, limits, filters, pagination, ticket link visibility, date formats, and title styling options.
Yes. The block can show frontend filters for event type, country, city, status, and tour series.
Yes. Events can use City, State, and Country taxonomies. Country terms can store ISO 3166-1 alpha-2 country codes for cleaner location data and integrations.
Yes. You can mark an event as a recurring event template and choose daily, weekly, monthly, or yearly repetition. GigRoute Events generates dated recurring event posts ahead of time, excludes the parent from public event lists, and keeps AJAX filters and REST responses focused on the real generated event dates.
Yes. Recurring event templates can be Active, Paused, or Ended. Paused stops new generated event creation without changing existing dates. Ended stops the cycle and lets administrators keep, cancel, draft, or trash future generated events.
Yes. Public event data is available at /wp-json/gigroute-events/v1/events. The endpoint supports upcoming, past, and all-event modes, date filters, taxonomy filters, and pagination.
Yes. The plugin includes a versioned REST cache and cache headers. Cache debug information is available to administrators through the settings page and debug mode.
Yes. GigRoute Events includes controls for hiding an individual event page and preventing indexing. A published event can still appear in event lists and REST summaries while its direct single-event URL is hidden.
Yes. You can assign posters to individual events or use one global poster. Posters can be linked to ticket or promotional URLs when link wrapping is enabled.
Yes. Go to Events > Settings, enable the event archive redirect option, and select a published page. The plugin stores the page ID and resolves the URL with WordPress, so domain, protocol, and permalink changes are handled more safely than a manually stored URL.
Yes. Use the gigroute_events_archive_redirect_url filter. It receives the resolved URL and selected page ID, so multilingual plugins can return the translated page URL when needed.
No. GigRoute Events supplies default block templates for both single-gigroute_event and archive-gigroute_event, so event fields and the event archive work even when the active block theme has no plugin-specific templates.
A block theme can override either default by adding templates/single-gigroute_event.html or templates/archive-gigroute_event.html. A template customized in the Site Editor or supplied by the active theme takes precedence over the plugin fallback.
WordPress-standard single-gigroute_event.php and archive-gigroute_event.php files in the active theme have first priority. The plugin also supports legacy overrides at gigroute-events/single-event.php and gigroute-events/archive-event.php, then falls back to its bundled PHP templates when the theme has no event-specific template.
No. GigRoute Events does not process payments or sell tickets directly. It helps organize event information and send visitors to the correct ticket, event, or promotional URL.
single-gigroute_event.php and archive-gigroute_event.php files are never overwritten by the bundled fallback.gigroute_events_archive_redirect_url filter for multilingual redirect targets.archive-gigroute_event.php and single-gigroute_event.php overrides.