WordPress Video Tube Theme
Video Tube — Theme Description
Video Tube is a full-featured, YouTube-style video sharing platform built entirely as a custom WordPress theme — not a page builder skin, but a ground-up application layer on top of WordPress's content model, REST API, and role system. It turns WordPress into a self-hosted video community: creators upload and manage content through a dedicated Studio, viewers browse, watch, comment, and subscribe through a polished consumer-facing site, and everything is backed by WordPress's own database rather than a third-party service.
Content model
At its core, Video Tube registers a yt_video custom post type (with its own REST endpoint, archive, and single-yt_video.php template) alongside two taxonomies — Channel and Genre — for organizing content the way a real video platform would, plus a yt_playlist post type for grouping videos. Beyond the post itself, four dedicated database tables track what WordPress's post/postmeta tables aren't built for at scale: per-video view/like/dislike counts and status, per-user video reactions, channel subscriptions, and user feedback submissions — each with proper indexes for the query patterns a video site actually needs (lookups by post, by user, by status).
Roles and permissions
Rather than shoehorning everything into WordPress's default Administrator/Subscriber split, the theme defines four purpose-built roles: Creator (can upload, edit, and manage their own videos), Subscriber, Moderator, and Premium Member — each with its own capability set, so a site running this theme can support the same kind of tiered audience a real platform would (free viewers, paying members, content moderators, and creators) without touching a single plugin.
The viewer experience
The public-facing site is a dark/light-mode-aware, fully responsive layout: a sticky header with search, a collapsible icon sidebar for navigation (Home, Shorts, Subscriptions, Library, History), category pills for filtering by genre, and a responsive video grid on the homepage. The video watch page supports comments with threaded replies and like/dislike reactions on both videos and individual comments, channel pages, and a subscriptions feed — all wired through Alpine.js-style vanilla JS talking to the theme's own REST endpoints, so interactions (subscribing, reacting, commenting) happen without full page reloads.
Creator Studio
Logged-in creators get a separate "Studio" shell (its own dark-themed header and sidebar, distinct from the main site chrome) mirroring what a real creator dashboard looks like: a Channel dashboard with recent uploads, lifetime view/like summaries, recent subscribers, and top-performing video; a Content manager for editing/publishing videos; Analytics; Community (comment moderation across their videos); Settings (channel avatar, banner, bio); and a Feedback page that pipes submissions into the site's own feedback table. Several forward-looking sections (Subtitles, Content detection, Earn, Customisation, Audio library) are scaffolded as "coming soon" pages, signaling where the platform is headed.
Authentication and accounts
Rather than relying on WordPress's default wp-login.php, the theme ships its own front-end Sign In and Create Account pages, an AJAX/REST-driven auth flow (login, register, forgot-password, logout, account updates, avatar/banner upload and removal), and account media handling — so the entire user journey, from signup to channel customization, stays on-brand and never bounces a visitor into the wp-admin UI.
Upload pipeline
Video uploads go through a dedicated Upload_Service and REST routes (init, finish, status, plus a post-publish update endpoint) built for large files — an init/finish handshake rather than a single blocking POST, with status polling and automatic duration/thumbnail backfilling (including a YouTube-URL import path for auto-populating thumbnails and durations, judging by the site's tooling).
REST API
Everything front-of-site talks to a versioned REST namespace (video-tube/v1) rather than admin-ajax — auth, account, engagement (reactions, subscriptions, view counts), feedback, and upload all have their own route groups, plus a status/theme-settings endpoint, making the theme's data cleanly consumable by any client (mobile app, alternate front end) in the future.
Under the hood
- WordPress 7.1, PHP 8.0+, no page-builder or third-party framework dependency
- Tailwind CSS (via CDN) for styling, hand-rolled vanilla JS for interactivity (theme switching, sidebar collapse state persisted per-user in localStorage, comment reactions, subscribe toggles, upload progress)
- Object-oriented PHP throughout (declare(strict_types=1), PSR-ish class organization under inc/classes/{Models,Services}), rather than the flat-functions.php sprawl typical of classic themes
- A versioned internal DB-migration system (Theme_Database) that upgrades custom tables in place as the schema evolves, without requiring reactivation
- Auto-provisions all the static pages a video platform needs (Login, Register, Dashboard, Upload, Subscriptions, Library, Notifications, and every Studio subsection) on activation, so a fresh install is usable immediately
In short: Video Tube isn't a "blog theme with a video post type bolted on" — it's a working video-sharing product (creator tools, subscriptions, reactions, custom auth, a real upload pipeline) implemented as a single, self-contained WordPress theme.