Beschreibung
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.
Blöcke
Dieses Plugin bietet 1 Block.
- Quote Of The Day
Installation
- 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
FAQ
-
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.
Rezensionen
Für dieses Plugin gibt es keine Rezensionen.
Mitwirkende und Entwickler
„TheOfficeLines Quote of the Day“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:
MitwirkendeÜbersetze „TheOfficeLines Quote of the Day“ in deine Sprache.
Interessiert an der Entwicklung?
Durchstöbere den Code, sieh dir das SVN-Repository an oder abonniere das Entwicklungsprotokoll per RSS.
Änderungsprotokoll
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
