外掛說明
Adds a beautifully styled daily quote from The Office (US) to your WordPress site. Each day features a different memorable quote paired with a relevant YouTube video clip.
Disclaimer: This plugin is not affiliated with, endorsed by, or connected to NBC, Universal Television, or the creators of The Office. All quote content is sourced from a fan-maintained database.
Features:
- Sidebar Widget — Drag and drop into any widget area
- Gutenberg Block — Insert anywhere in the block editor
- [office_qotd] Shortcode — For classic editor users
- Click-to-play video — YouTube thumbnail loads first, iframe on click (fast page loads)
- Light & Dark themes — Matches your site design
- SFW mode — Filter out quotes that may not be appropriate for all audiences
- Zero external dependencies — No JavaScript libraries, no CSS frameworks
- Cached — Fetches the daily quote once per day, caches locally
Data powered by The Office Lines, a free quote search engine with 60,000+ lines from every episode of The Office (US).
Third-Party Service
This plugin fetches daily quote data from the The Office Lines API:
- Service: theofficelines.com
- Endpoints used:
https://theofficelines.com/data/qotd.jsonandhttps://theofficelines.com/data/qotd-sfw.json - Data sent: None — the plugin only reads publicly available JSON data via a GET request.
- Frequency: Once per day (cached locally via WordPress transients for 24 hours).
- Terms of service: theofficelines.com/api/
- Privacy policy: No personal data is collected or transmitted. The API returns static JSON with no tracking.
YouTube video thumbnails are loaded from img.youtube.com. When a user clicks play, a YouTube embed iframe is loaded. YouTube’s Terms of Service and Privacy Policy apply to that interaction.
適用於區塊編輯器
這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。
- Quote Of The Day
安裝方式
- Upload the
theofficelines-quote-of-the-dayfolder to/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu
- Add the widget to a sidebar via Appearance > Widgets, or use the Gutenberg block, or add
[office_qotd]to any post/page - (Optional) Configure SFW mode and theme under Settings > Office QOTD
常見問題集
-
Where does the quote data come from?
-
Quotes are served from the free public API at theofficelines.com. A new quote is selected each day at 6am UTC.
-
Does this slow down my site?
-
No. The daily quote is cached for 24 hours using WordPress transients. The video uses a click-to-play pattern — only a lightweight thumbnail loads initially. The YouTube iframe only loads when a visitor clicks play.
-
Can I show an attribution link?
-
Yes. Go to Settings > Office QOTD and check “Show attribution link.” Keeping it on helps support the free API that powers this plugin.
-
What if the API is down?
-
The plugin gracefully degrades. If the API is unreachable, it serves the last cached quote for up to an hour. If there is no cached data at all, the widget simply renders nothing.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
1.0.1
- Handle optional video field — display quote-only card when no video clip is available
1.0.0
- Initial release — sidebar widget, Gutenberg block, shortcode
- Light and dark theme support
- SFW mode toggle
- Click-to-play YouTube video facade
- Daily caching with WordPress transients
