Skip to content

Your web browser is out of date

Your web browser (the software you use to access the internet) is out of date. You need to update it or use a different web browser to ensure you can complete this form.

Cookies disabled

Cookies are currently not enabled in your web browser. You need to enable cookies to ensure you can complete this form.

WP Core

Overview

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.

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.

Requirements

  • WordPress 6.9+ recommended (for full clean_up block and global style handling)
  • PHP 8.2+
  • Composer (when installed as a dependency)

Installation

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.

Configuration

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.

Hosting

Runs in consuming WordPress sites.

Tech stack

  • PHP
  • WordPress

Used by

  • WordPress products such as Tasks
  • Other ASP WordPress sites that include the package via Composer

Integrations

In house applications

Force IT

> TODO: Add content.

Third party

> TODO: Add content.

Contacts

  • Christian King -- Development Team Lead

Repositories

Resources

> TODO: Add backlog, board, or related docs.


Published 21 September 2026
Last updated 21 September 2026