| 开发者 | Blackstar1991 |
|---|---|
| 更新时间 | 2026年6月3日 02:02 |
| 捐献地址: | 去捐款 |
| 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. Events can be marked as sold out. When an event is sold out, the frontend output can show a sold-out label instead of the ticket link.
Yes. Events include a free-event option for cases where no ticket purchase is required.
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. 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.
Use templates/archive-gigroute_event.html. The public URL can still be /events/; the template name follows the post type key gigroute_event, not the archive slug.
For classic themes, use archive-gigroute_event.php for the event archive and single-gigroute_event.php for single event pages. The plugin also supports theme overrides in gigroute-events/archive-event.php and gigroute-events/single-event.php before falling back to its bundled templates.
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.
gigroute_events_archive_redirect_url filter for multilingual redirect targets.archive-gigroute_event.php and single-gigroute_event.php overrides.