外掛標籤
開發者團隊
② 後台搜尋「Next Webinar & Live Event Manager」→ 直接安裝(推薦)
原文外掛簡介
A homepage/shortcode webinar widget (five designs, theme colour), webinar detail
and listing pages (web + AMP), and visitor registration with an admin list and
CSV export. Video plays from YouTube with Picture-in-Picture, or a live Zoom
webinar is embedded with the Zoom Meeting SDK. All code uses the next-webinar
prefix (next_webinar_ / next-webinar- / Next_Webinar_ / NEXT_WEBINAR_).
Setup
Activate the plugin.
Webinars → Add New: title, excerpt (short excerpt), editor (full description),
featured image (thumbnail), then in “Webinar video & CTA”:
Video source: YouTube or Zoom.
YouTube URL (watch?v=, youtu.be/, /embed/, /shorts/, /live/). For Zoom
webinars, this is the recording shown after the webinar ends.
Optional heading override (replaces the red part).
Starts / Ends (site timezone): detail page countdown, “Webinar ended”
state and duration. Zoom uses the same times.
Panelists: photo, name, designation; tick “Moderator” for the moderator.
CTA button: optional; switch it on to show it, then set CTA text + URL.
Zoom only: webinar ID, passcode, start/end (site timezone), ask-for-email,
Zoom app join link (fallback).
Webinars → Widget Settings (tabs: General, Listing page, Registration,
Zoom): enable, heading (plain + red part), featured webinar (blank = latest
published), widget design (Classic, Card, Spotlight, Compact or Banner —
only the selected one is applied, to the homepage widget web + AMP and the
shortcode), theme color (presets or any color; text shades are derived to
stay readable), AMP on/off, the [next_webinar_widget] shortcode, listing page SEO,
registration, Zoom Meeting SDK Client ID / Secret / version.
Each published webinar has a detail page at /webinar/{slug}/ (plugin template
templates/webinar-single.php inside the theme header/footer): title, description,
panelists, and a card with the video, countdown or ended bar, schedule, tags,
Register Now / Watch now, Share, then “Other Webinars”. The page is full-page
cached, so upcoming/live/ended is recomputed in the browser (webinar-detail.js). The
homepage widget’s title/text column links there. Its AMP version is
/webinar/{slug}/amp/ (see “AMP” below).
Listing page: /webinars/ (paging /webinars/page/N/). Heading + intro under
Widget Settings → Listing page. Upcoming/live webinars first (soonest first),
then past/on-demand ones 5 per page (newest first).
AMP: the detail and listing pages each have an AMP version — /webinar/{slug}/amp/,
/webinars/[page/N/]amp/ — advertised with rel=”amphtml” (theme filters
next_webinar_singular_amphtml_href / next_webinar_amphtml_alternate_href) and canonical
back to the web page. Templates in templates/amp/; AMP CSS = theme header/footer
+ assets/css/amp-theme-base.css (copy of the theme’s AMP sidebar/layout CSS) +
assets/css/webinar-amp-pages.css. Countdown via amp-date-countdown, video via
amp-youtube, registration via amp-lightbox + amp-form (needs https; works on
UAT/production, not on the http demo).
Registration (Widget Settings → Registration): a toggle + label for a Register
link (homepage widget, webinar pages, listing cards; AMP versions too) that opens
the single registration page /webinar/register/ (AMP: /webinar/register/amp/) for the webinar chosen under “Registration page webinar” (Auto = featured, else next upcoming); only that webinar shows a Register link. Fields:
name, email, 10-digit Indian mobile (required), question for panelists
(optional), terms checkbox (required; link = Terms & Conditions URL setting, else
the privacy policy). Web submits via JS to POST /wp-json/next-webinar/v1/register,
or without JS to admin-post.php → /webinar/register/done/; AMP uses amp-form (https
only). Rows go to {prefix}next_webinar_users (one per webinar + email). Guards:
honeypot, 10 requests / 10 min per IP, closes at the webinar’s end time; the
pages 404 while registration is switched off. Webinars → Webinar Users lists
them with filters, CSV export and bulk delete. The table is kept on uninstall.
Saving a webinar or the settings clears the plugin’s cache, calls the theme’s
next_webinar_flush_home_page_cache() when it exists, clears WP Rocket’s home cache when
WP Rocket is active, and fires the next_webinar_purged action for any other
page cache.
Theme integration (optional)
A theme can place the widget automatically by firing these hooks:
Homepage template — do_action( ‘next_webinar_home_after_live_widget’ ) where the widget
should appear.
AMP homepage — do_action( ‘next_webinar_amp_home_after_live_widget’ ) at the same spot,
plus filters next_webinar_amp_home_custom_css / next_webinar_amp_home_scripts.
Further optional theme functions/filters the plugin uses when present:
next_webinar_dynamic_page_seo_set_context(), next_webinar_flush_home_page_cache(),
next_webinar_generate_post_slug_from_title(), next_webinar_resolve_canonical_parent_url_for_request,
next_webinar_singular_amphtml_href, next_webinar_amphtml_alternate_href, next_webinar_schemas_output,
next_webinar_automatic_schemas, next_webinar_og_article_tag_max,
next_webinar_client_ip (visitor IP for rate limits behind a CDN/proxy; default REMOTE_ADDR).
The [next_webinar_widget] shortcode renders the same block anywhere else.
Other themes: everything above is optional. Without these hooks there is no
automatic homepage block (use the shortcode); listing/registration titles,
descriptions and canonicals go through core (pre_get_document_title + wp_head)
instead of next_webinar_dynamic_page_seo_set_context(); AMP pages use a minimal plugin
and header when template-parts/amp/{amp-head,category-header,category-footer}.php
are missing. Hook next_webinar_purged to clear other page caches when a webinar or
the settings change.
External services
This plugin loads content from, or links to, the third-party services below.
Nothing is sent to them on page load unless stated; no data is sent to the
plugin author.
YouTube (Google)
Plays the webinar video and shows its thumbnail when the video source is YouTube.
* Thumbnails: if a webinar has no featured image, the image is loaded from
i.ytimg.com when the page is viewed (the visitor’s IP address and browser
details are sent, as with any image request).
* Player: only after the visitor clicks play, the player iframe is loaded from
www.youtube-nocookie.com. On AMP pages the player is loaded by amp-youtube. YouTube
receives the video ID, the visitor’s IP address, browser details and cookies.
* Terms: https://www.youtube.com/t/terms
* Privacy policy: https://policies.google.com/privacy
Zoom Meeting SDK (Zoom Video Communications, Inc.)
Embeds a live Zoom webinar when the video source is Zoom.
* On web pages that show a Zoom webinar (only when the Zoom SDK Client ID and
Secret are set), the SDK scripts (React, ReactDOM, Zoom Meeting SDK) are
loaded from source.zoom.us when the page is viewed; the visitor’s IP address
and browser details are sent with these requests.
* When the visitor clicks “Join”, the browser connects to Zoom with the webinar
ID, passcode, a signature generated on your server, and the name (and email,
if “ask for email” is enabled) the visitor enters. The SDK Client Secret never leaves your
server. The “Open in Zoom app” link opens zoom.us.
* Terms: https://www.zoom.com/en/trust/terms/
* Privacy policy: https://www.zoom.com/en/trust/privacy/privacy-statement/
AMP Project CDN (cdn.ampproject.org)
Only on the plugin’s AMP pages (/webinar/{slug}/amp/, /webinars/amp/,
/webinar/register/amp/ and the AMP homepage widget), the AMP runtime and the
AMP components the page uses (e.g. amp-youtube, amp-date-countdown, amp-form)
are loaded from cdn.ampproject.org when the page is viewed. The visitor’s IP
address and browser details are sent with these requests. The AMP project is
hosted by the OpenJS Foundation; the CDN is operated by Google.
* Terms: https://policies.google.com/terms
* Privacy policy: https://policies.google.com/privacy
Share links (WhatsApp, X/Twitter, Facebook)
The webinar detail page has plain share links. Nothing is loaded from these
services; only when the visitor clicks a link, a new tab opens on that service
with the webinar title and URL.
* WhatsApp (api.whatsapp.com): terms https://www.whatsapp.com/legal/terms-of-service ,
privacy https://www.whatsapp.com/legal/privacy-policy
* X/Twitter (twitter.com): terms https://x.com/en/tos ,
privacy https://x.com/en/privacy
* Facebook (www.facebook.com): terms https://www.facebook.com/terms.php ,
privacy https://www.facebook.com/privacy/policy/
Performance
YouTube: no third-party request before interaction when a featured image is
set: the thumbnail is the WP image and the youtube-nocookie iframe loads on
click.
Zoom: the Zoom SDK (~3.5 MB + React) is enqueued (deferred, in the footer)
only on pages that show a Zoom webinar and only when Zoom credentials are set.
16:9 media box is reserved in CSS (no layout shift).
CSS/JS are enqueued only on the front page when the widget is enabled and a
webinar is published — decided in wp_enqueue_scripts, so they are present on
full-page cache hits too.
Picture-in-Picture: what works where
A YouTube embed is a cross-origin iframe; the page cannot call
requestPictureInPicture() on the inside it, and this plugin does not try.
Chrome / Edge / Opera desktop (116+): “Picture-in-picture” button opens a
Document Picture-in-Picture window with the player, starting at the current
position. Closing it resumes inline at the elapsed position (approximate if
the video was paused inside the PiP window).
Safari (macOS/iOS), Firefox: no PiP button. The iframe carries
allow=”picture-in-picture”, so the browser’s own PiP controls (Firefox’s
video toggle, Safari’s player control / iOS full-screen → PiP) work when the
browser offers them for the YouTube player.
All browsers: when the playing video scrolls out of view it docks as a
bottom-right mini-player with “back” and “close” buttons.
Zoom: the Component View is already a resizable panel; no PiP/docking is
applied to it (moving the SDK root between documents ends the session).
Zoom limitations
Needs a Zoom Marketplace app with Meeting SDK enabled (Client ID / Secret).
The secret stays server-side; /wp-json/next-webinar/v1/zoom-signature signs
role 0 (attendee) only, for the meeting saved on a published webinar, within
10 min before start → end, rate-limited per IP.
Webinars hosted by a different Zoom account than the SDK app need extra
authorization from Zoom (OBF/ZAK token rules) — host on the same account, or
rely on the “Open in Zoom app” fallback link.
Registration-required webinars (tk token) are not supported.
Without COOP/COEP headers (not added — they would break ads/third-party
iframes) the SDK runs in its reduced-performance mode.
AMP cannot embed Zoom; the AMP block links to the non-AMP homepage #next-webinar.
Simplest robust alternative: stream the Zoom webinar to YouTube Live and use
the YouTube source.
