WP Manifestindependent plugin directory
manifest / content / ucsc-primary-sites

UCSC Primary Sites WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Functionality for primary UC Santa Cruz websites

★ 0stars
13release downloads
v1.4.0latest · 5mo ago

Install

Download ucsc-primary-sites.zip From the v1.4.0 release on GitHub, May 11, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/ucsc/ucsc-primary-sites/releases/download/v1.4.0/ucsc-primary-sites.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.

WordPress plugin that loads site-specific functionality for the primary UC Santa Cruz websites: www, news, and events.

How it works

The plugin uses a registry/loader/module architecture:

  1. Site Registry -- maps named site groups (e.g. www, news, events) to URL patterns and module classes.
  2. Site Loader -- resolves the current site URL against the registry and boots matching modules.
  3. Modules -- self-contained feature classes that register hooks, post types, blocks, and other WordPress functionality.

Sites are matched automatically by URL pattern (e.g. https://news.ucsc.edu). An admin settings page under Settings > UCSC Primary Sites allows overriding any group to always-on, always-off, or auto (URL-based).

Site groups

Group Patterns Modules
WWW www.ucsc.edu, *www-ucsc* Front Page, Dashboard Widgets
News news.ucsc.edu, *news-ucsc* Media Coverage, Dashboard Widgets, Block Variations
Events events.ucsc.edu, *events-ucsc* Block Bindings, Users Events Column
Shared all three site patterns Robots Generator

The Shared group exists for functionality that should apply uniformly across all UCSC primary sites. Add a module to its list in sites/registry.php when the behavior is not site-specific.

Robots Generator (Shared)

Appends UCSC-specific rules to WordPress's generated robots.txt via the robots_txt filter. Two lists are maintained as class constants in sites/shared/modules/class-robots-txt.php:

  • LIMITED_AGENTS — AI training crawlers (e.g. GPTBot, ClaudeBot, CCBot). Each receives a Crawl-delay directive set by the CRAWL_DELAY constant.
  • BANNED_AGENTS — aggressive SEO scrapers and known abusive crawlers (e.g. AhrefsBot, SemrushBot, MJ12bot). Each receives Disallow: /.

The module deliberately excludes AI search bots (e.g. OAI-SearchBot, PerplexityBot, ChatGPT-User), which provide user-initiated retrieval rather than training data. If a site is set to discourage indexing in Settings > Reading, this module leaves WP's default output unchanged.

Adding a new module

  1. Create a class in the appropriate sites/<group>/modules/ directory that extends UCSC\PrimarySites\Module.
  2. Implement get_name() and boot(). Optionally override can_load() to check dependencies.
  3. Add the class to the group's module list in sites/registry.php.

Requirements

  • WordPress 6.4+
  • PHP 8.0+
  • ACF Pro (required by the Media Coverage module in news; other modules load without it)

License

This plugin is licensed under the GPL-2.0.

Releases

6 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.4.0 latest
May 11, 2026 5mo ago
ucsc-primary-sites.zip
4
May 7, 2026 5mo ago
ucsc-primary-sites.zip
0
May 7, 2026 5mo ago
ucsc-primary-sites.zip
1
Apr 8, 2026 6mo ago
ucsc-primary-sites.zip
6
Apr 7, 2026 6mo ago
ucsc-primary-sites.zip
2
Apr 6, 2026 6mo ago
ucsc-primary-sites.zip
0
A grade

Security

UCSC Primary Sites 1.4.0 · audited by WP Registry

No security issues found.

Audited release
1.4.0
Findings
none
Worst severity
—
Content hash
3bcf8572436e386357ce744a…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.