UCSC Primary Sites
Functionality for primary UC Santa Cruz websites
by UC Santa Cruz Communications · github.com/ucsc/ucsc-primary-sites · website
★ 0stars
10release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/ucsc/ucsc-primary-sites/releases/download/v1.4.0/ucsc-primary-sites.zipDeclares an update source (https://github.com/ucsc/ucsc-primary-sites/releases), so updates arrive through the plugin's own updater.
From the readme
UCSC Primary Sites
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, U
Read the full README on GitHub →