Most sites accumulate content that’s no longer relevant but can’t simply be deleted. Yuhi provides a structured lifecycle stage—Sunset—and fine-grained visibility controls to hide deprecated, private, and password-protected items from public channels while keeping them accessible when appropriate.
From redirecting logged-out users to marking content as noindex, Yuhi keeps your archives clean and your users confident in what’s current. It manages the technical side—rewrites, queries, caching, REST behavior—so editors can focus on the story, not the plumbing.
What it does
- Adds a Sunset post status and records the timestamp when content transitions into it
- Filters front-end queries, sitemaps, and REST API results to hide deprecated or restricted material
- Keeps permalinks active for Sunset content with custom rewrite rules and caching
- Displays a styled “This page has been sunset” banner for logged-in users
- Redirects logged-out visitors to the homepage or a replacement URL
- Warns admins when navigation menus include unpublished or sunsetted items, with snooze/dismiss controls
- Provides admin settings to toggle behaviors for Sunset, private, and password-protected content
- Includes bulk actions and a metabox for setting Sunset details like date and replacement URL
- Backend alert when a page/post that is in a WordPress menu has been moved to trash, set as draft, or sunset
Key features
Lifecycle management
- Registers a non-public Sunset status with badges in admin lists and dropdowns
- Automatically stamps a _yuhi_sunset_on date when content moves into Sunset
- Maintains working permalinks with rewrite and query filters
Visibility controls
- Hide Sunset, private, and password-protected items from search, archives, REST API, and sitemaps
- Add noindex, nofollow meta tags to Sunset pages
- Optional redirect for logged-out visitors with conflict-safe logic
Editor tools
- Bulk action to mark multiple posts as Sunset
- Custom “Sunset details” metabox for date and replacement URL
- Success notices and nonce/capability checks for all actions
Settings screen
- Found under Settings → Yuhi Content Controls
- Toggles for front-end banner, redirection, sitemap filtering, and query visibility
- Clean admin design with bespoke CSS loaded only where needed
Performance and cleanup
- All hooks wired during plugin bootstrap for cohesive load order
- Options sanitized on save and deleted on uninstall for a clean database
Typical use cases
- Archiving outdated blog posts or product pages without breaking links
- Keeping compliance-sensitive content available privately
- Maintaining SEO hygiene by excluding old content from indexing
- Managing member-only or time-limited resources