Bespoke WordPress plugin that centralises small, cross-cutting platform behaviours for Avon and Somerset Police sites. Features are toggled on or off via wp-config.php — no admin screens, no per-site plugin settings.
Installed as a Composer dependency and activated like any other plugin. Each capability is registered in asp-wp-core.php and loaded only when enabled through ASP_CORE_FEATURES.
| Feature | Default | Description |
|---|---|---|
| concurrent_sessions | true | Prevents multiple simultaneous logins per user |
| rest_auth | true |
Restores Application Password / Basic auth when the reverse proxy strips the Authorization header (also accepts X-WP-Authorization / X-Authorization)
|
| disable_comments | false | Disables comments site-wide |
| disable_embeds | false | Disables WordPress oEmbed and embeds |
| disable_xmlrpc | false | Disables the XML-RPC API |
| disable_trackbacks | false | Disables trackbacks and pingbacks |
| disable_asset_versioning | false |
Removes the ver query string from enqueued styles and scripts
|
| clean_up | false | Tidies front-end WordPress output (head cleanup, default block/global styles, markup tweaks). Intended for sites using Frontend for styling |
| clone_page | true | Adds a Clone row action on Pages |
| page_excerpt | true | Enables the native excerpt box on pages and prevents auto-generated excerpts |
Public helper: asp_core_feature_enabled( string $feature ): bool.
clean_up block and global style handling)Via Composer (recommended):
"require": {
"policedigitalservices/asp-wp-core": "^1.3"
}
Include the VCS repository if required, then:
composer update policedigitalservices/asp-wp-core
Activate WP Core in WordPress admin (or your project’s active plugin list), then configure ASP_CORE_FEATURES in wp-config.php.
define('ASP_CORE_FEATURES', [
'concurrent_sessions' => true,
'disable_comments' => true,
'disable_embeds' => true,
'disable_xmlrpc' => true,
'disable_trackbacks' => true,
'disable_asset_versioning' => true,
'clean_up' => true,
'rest_auth' => true,
'clone_page' => true,
'page_excerpt' => true,
]);
Any feature omitted from the array uses its built-in default. Set a feature to false to disable it explicitly.
Runs in consuming WordPress sites.
clean_up is enabled)> TODO: Add content.
> TODO: Add content.
> TODO: Add backlog, board, or related docs.