Yuhi — Smarter Content Controls

Description

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

Roadmap

  • Role-based visibility rules
  • Custom redirect destinations per post type
  • Expiration scheduling and email notifications
  • Integration with block editor UI

Installation

  1. Upload the plugin to /wp-content/plugins/yuhi-content-control or install directly from the WordPress plugins screen.
  2. Activate the plugin.
  3. Go to Settings Yuhi Content Controls to configure visibility and redirect options.
  4. Use the new Sunset status in the post editor or bulk-edit screen.
  5. (Optional) Add replacement URLs for sunset content in the “Sunset details” metabox.

FAQ

Does Yuhi delete or unpublish content?

No. Sunset content remains accessible via its permalink unless you choose to redirect visitors. Yuhi hides it from discovery channels, not the database.

Will Sunset pages affect SEO?

Yuhi adds noindex, nofollow tags by default and removes Sunset items from sitemaps. This signals to search engines that the content should not be indexed.

Can logged-in users still view Sunset pages?

Yes. Authenticated users with appropriate permissions can access and edit Sunset content directly.

Does this work with custom post types?

Yes. Any registered post type that supports post_status will gain the Sunset option automatically.

What happens when I uninstall Yuhi?

All Yuhi options are removed. Content marked as Sunset reverts to a non-public status but remains stored safely in the database.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Yuhi — Smarter Content Controls” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.2.0

  • Added a new Setting toggle to removed “Protected: ” from Password-Protected posts.

1.1.2

  • Made an adjustment to show Published Pages/Posts first, instead of ‘All’.

1.1.1

  • Fixed redirect issue where some published posts would get redirected to the Home page.

1.1.0

  • Added backend alert when a page/post that is in a WordPress menu has been moved to trash, set as draft, or sunset. This is to prevent unpublished pages from remaining in your menu.

1.0.1

  • Fix issue where preview posts weren’t loading correctly because of the filter rules in the plugin.

1.0.0

  • Initial release: Adds Sunset lifecycle state, visibility filters, REST/sitemap integration, redirect logic, and admin settings.