PIE Hosting Companion WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Custom Functions for Hosting on WPMU DEV
★ 0stars
252release downloads
≈20active sites
1.7.0latest · 3mo ago
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/pie/pie-custom-functions/releases/download/1.7.0/pie-custom-functions.zipUpdates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.
What it does
A PIE-internal hosting companion that loads as a Must-Use plugin so it can't be accidentally deactivated by clients. Requires PHP 8.0+.
- PIE admin access — Treats any user with an
@pie.co.deemail address (orpie_admin_overrideuser meta) as a PIE admin, granting administrator capabilities. - Plugin hiding — Hides Ultimate Branding, WP Hummingbird, and this plugin itself from non-PIE admin users, while keeping them fully functional.
- WPMU DEV restriction — Limits WPMU DEV suite access to PIE admin users via
WPMUDEV_LIMIT_TO_USER. - Branda restriction — Restricts Ultimate Branding access to PIE admin users via its permissions filter.
- URL redirections — Regex-based redirect system with capture group support, conditions (
always,not_logged_in,logged_in,not_admin, or a custom callable), and standard HTTP status codes. Rules added viaPIE\Redirections\filters\redirect_rules. - CSP header management — Settings > Pie Security Headers page (pie_admin only) for configuring a Content-Security-Policy header across frontend, admin, and login. Overridable via
PIE_CSP_HEADERconstant inwp-config.php. - Staging detection — Detects staging clones by comparing the live URL to a protected option (resilient to search-and-replace). On staging: disables CF7 spam checks and updates Multisite domain mappings for
*.staging.tempurl.host. - Auto-updates — Deploys MU plugin files atomically on activation and after updates, sourcing releases from GitHub via
plugin-update-checker. - Update watchdog — Tracks plugin/theme updates and sends an alert email if an update appears to stall mid-process.
Installation:
- Download the latest copy of pie-custom-functions.zip from https://github.com/pie/pie-custom-functions/releases
- Upload via wp-admin
- Activate & enjoy
Deploying updates:
This plugin template is set up to work with integrated WordPress updates through the use of yahnis-elsts/plugin-update-checker and rymndhng/release-on-push-action
In order to deploy an update:
- (Once) Enable Github Pages on your repository (Settings > Pages) so that a
update.jsoncan be read by the Update Checker in production sites. - Create a pull request to merge your branch into
mainand add the appropriate label:release:majorrelease:minorrelease:patch
- When merged, the
release.ymlworkflow will update all of your version numbers and commit them back into main and create a github release with an extra artifact:plugin-slug.zip- the uploadable plugin for manual installation
- Updates should then show in wp-admin for any users of the plugin
Releases
22 releases. Each count is every asset in that release; expand a row for the breakdown.
Tag
Published
Assets
Downloads
Dec 6, 2023 2 years ago
pie-custom-functions.zip
+1 asset
10
pie-custom-functions.zip4
update-package.zip6
Dec 6, 2023 2 years ago
pie-custom-functions.zip
+1 asset
10
pie-custom-functions.zip4
update-package.zip6
Dec 6, 2023 2 years ago
pie-custom-functions.zip
+1 asset
4
pie-custom-functions.zip2
update.zip2
Active-site estimate ≈20 comes from the median of recent superseded releases. Method.