Tabs, tab, image-compare; extends core/video and core/query
Video is the WordPress core/video block (enhanced by the theme framework and plugin editor scripts), not a separate aegis/video block. The plugin loads only with the Aegis theme or a child theme.
Plugin Version: 1.0.2 Requires WordPress: 7.0 or later Requires PHP: 8.1 or later Requires Theme: Aegis theme (required) License: GPL-2.0-or-later Theme docs:Aegis Theme DocumentationPro docs:Aegis Pro
Installation
Updated November 25, 2026
Prerequisites
Ensure your environment meets the Requirements. The Aegis theme must be installed and active before you activate the plugin.
Installation Order
Install and activate the Aegis theme.
Install and activate the Aegis plugin.
Optionally install Aegis Pro for advanced features.
The plugin is a companion to the theme — it will show an admin notice and refuse to load if the Aegis theme is not active.
WooCommerce shops: For WooCommerce block patterns (cart, checkout, product grids, store headers), also install WooCommerce. Patterns register only when both the plugin and WooCommerce are active. See Plugin Patterns.
Installation Methods
The plugin is distributed as a release package, not through WordPress.org. The current version is 1.0.2 (October 24, 2026), released alongside Aegis theme 1.0.2. Each release has an aegis.zip asset that contains the ready-to-install aegis plugin folder.
From the Theme’s Companion Notice
When the Aegis theme is active and the plugin is not, the theme shows a notice on Appearance → Themes:
Install the plugin straight from the theme’s notice.
Click Install Aegis Plugin. WordPress downloads aegis.zip from the latest release and installs it.
Click Activate Aegis Plugin.
If the plugin is already installed but inactive, the notice offers Activate Aegis Plugin directly. The notice also links to the releases page as a manual fallback.
WordPress Admin Upload
Download aegis.zip from the latest release. Use the aegis.zip package, not a source code archive, which unpacks to a different folder name.
Log in to WordPress admin.
Navigate to Plugins → Add New → Upload Plugin.
Choose aegis.zip and click Install Now.
Click Activate Plugin.
Manual Installation
Unzip aegis.zip and upload the aegis folder to /wp-content/plugins/.
Activate through Plugins in WordPress admin.
Updates
The plugin updates through the normal WordPress update screens (Dashboard → Updates and Plugins), including automatic updates if you enable them. The plugin’s Update URI header stops WordPress.org from offering updates for the aegis slug, and the plugin’s own updater supplies them instead:
It checks the latest release, skipping drafts and prereleases, and caches the result for 6 hours (30 minutes after a failed request). Check again on Dashboard → Updates skips the cache.
It offers an update only when the release tag is a newer version and the release has an aegis.zip asset.
View details shows the release name, notes, and date.
The cache is cleared after any update.
The updater loads before the theme check, so the plugin keeps receiving fixes even when the Aegis theme is not active.
To update from a fork or a private mirror, filter the repository (in owner/name form):
Existing sites keep previously implicit-on features enabled. Uninstall does not delete data unless Delete data on uninstall is enabled under Aegis → Settings.
The plugin code uses PHP 8.1 syntax (for example, match expressions), so it cannot run on older PHP versions. The Aegis theme it depends on also requires WordPress 7.0+ and PHP 8.1+.
PHP Extensions
Required:json
Recommended:openssl (used to encrypt stored integration secrets; without it, secrets are stored unencrypted)
Theme Requirements
The Aegis plugin requires the Aegis theme. On any other theme it shows an admin notice and loads nothing except its updater, so it can still receive updates. If the theme is older than 1.0.0, the plugin loads but shows a notice recommending an update.
Every Aegis screen is in the Aegis menu and shares the same top bar.
The Aegis screens come first. Add-ons follow under an Add-ons heading at the end of the menu: Documentation, Advertising, and Audio when those plugins are active, then License. The heading is a label, not a link.
Tab
Menu label
Page slug
Dashboard
Dashboard
aegis-dashboard
Blocks
Blocks
aegis-blocks
Modals
Modals
aegis-modals
Hooks
Hooks
aegis-hook-patterns
Code Snippets
Code Snippets
aegis-snippets
Presets
Presets
aegis-visibility-presets
Conditionals
Conditionals
aegis-settings
Integrations
Integrations
aegis-integrations
Connectors
Connectors
aegis-connectors
Performance
Performance
aegis-performance
Settings
Settings
aegis-general-settings
License
License
aegis-license(Get Pro screen when Pro is inactive: an Aegis Pro card marked Not installed with Open Plugins, the Pro features, and a donation card, with Get Aegis Pro at the top right. Pro replaces it with license activation.)
In the admin menu the screens are organised as Aegis → Plugins → [Plugin]. After Dashboard, a Plugins heading lists Aegis Dash (every screen in the table above except Dashboard), Aegis Pro, and each installed add-on such as Advertising or Documentation. A plugin with several screens gets a name row with its screens indented below; a plugin with one screen is a single subcategory link.
Note
The Conditionals tab uses the label “Conditionals” but the page slug is aegis-settings.
Top Bar
Every Aegis screen opens with a full-width top bar that follows your WordPress admin color scheme (since 1.0.2). It shows:
the Aegis mark and the current screen;
the plugin version;
Get Pro, a small blue button that opens the License screen, or a Pro badge when Aegis Pro is licensed;
Settings, when the screen has its own settings;
Documentation, which opens https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/.
The screen description sits in a bar underneath. Add-ons can change the description, the Settings link, and the Documentation link. See Build an Add-on Screen.
Dashboard Features
The Dashboard is a product home with three tabs: Overview (a pulse of your setup, shortcuts into work, and the System and Getting started cards), Blocks (every block with one switch each), and Add-ons (the add-ons you have installed, with their status and a one-click switch for their features). The Add-ons tab only appears when at least one add-on is installed.
At the top right, Tools has Export and Import for every Aegis setting, the same as on the other Aegis screens, and Open Site Editor is the main action. The Documentation button in the top bar opens the Dashboard Overview doc.
The Dashboard Overview tab.
Stat tiles: active blocks, conditionals, integrations, hook patterns, and code snippets. Each opens its screen.
Shortcuts to the Site Editor: Site Editor, Templates, Patterns, and Global Styles.
System: the WordPress version (with the newer version when an update is available), PHP, the database (SQLite, MySQL, or MariaDB), the theme, Aegis, and Aegis Pro. Copy Report copies these rows as plain text, one Label: value line each, for a support request.
Getting started: a checklist. Connecting a plugin, adding a code snippet, and publishing a hook pattern are ticked off when Aegis finds them; Dismiss hides it for your user.
Blocks Tab
Every block in one place.
Each card has the block’s icon, name, a one-line description, a master switch, a status line, and a Settings link to that block’s own section on Aegis → Blocks.
Free blocks have no label. Freemium blocks have free features plus extra Pro ones. Pro blocks need Aegis Pro; without it their switch is locked and the card says Needs Aegis Pro.
The switch turns every available feature of the block on or off and saves straight away. Switching a block off remembers which features were on; switching it on restores them. The first time, it turns on every feature that is available to you.
The status line counts features that can be on for you, so without Pro it counts only the free ones (“5 of 6 features on” is five free features of six).
Search blocks and the All, On, Off, Free, Freemium, and Pro buttons filter the cards. Turn All On and Turn All Off switch every block at once; blocks that need Pro are skipped without it.
Add-ons Tab
Add-ons and their status.
One card for each add-on that is installed: Aegis Ads, Aegis Audio, Aegis Docs, Aegis Forms, Aegis Video, and Aegis Pro. An add-on that is not installed is not listed, and with none installed the tab does not appear.
An active add-on shows its status, live numbers, an open button, and Settings.
An add-on that is installed but off shows Inactive and is greyed out, with Open Plugins.
The Aegis Pro card shows the Aegis logo and the license status (the full Pro feature list lives on License). Pro installed but not active shows Inactive.
Switch an Add-on’s Features On or Off
An active add-on’s card has a switch and a count such as 18 of 18 features on. The switch turns every feature of that add-on on or off in one click and saves straight away. The count follows what you have: Pro features count only while the Aegis Pro license is active, because they cannot run without it.
Card
What the switch turns on or off
Aegis Pro
The Pro features that live in Aegis Dash (the Pro toggles on Aegis → Blocks and Aegis → Performance). Turning them on needs an active license
Aegis Video
The player, styles, theater mode, shortcuts, schema, and the Pro video features
Aegis Audio
The audio player features, including the Pro ones with a license
Aegis Ads
Ad label, lazy load, placeholders, sponsored labels, tracking, and the Pro ones (ad refresh, ad-block recovery, click-fraud protection) with a license
Aegis Docs
The Doc Set features such as search, table of contents, feedback, breadcrumbs, and link scan
Aegis Forms
Spam protection: the honeypot and Akismet
Some options are never switched on in bulk because each needs a deliberate choice: Store IP address in Aegis Forms (personal data), and Ask AI and the llms.txt site root file in Aegis Docs. Set those on the add-on’s own screen.
Add-ons use one license, entered once in Aegis Pro. See License.
Loading
Aegis screens load like any other WordPress admin screen, such as Pages: each link is a normal page load, and the browser shows its usual progress. After an import, reset, or purge, the screen reloads.
Each screen loads only its own styles and scripts. The add-on screens (Documentation, Advertising, Audio) and Video Analytics print the data they start with into the page, so they draw as soon as the page arrives instead of showing a loading message while they ask for it. Changing a view afterwards (another Doc Set, another date range) still asks the server.
Spacing and sizes follow the WordPress admin: the page margin, 32px buttons and fields, 20px between boxes, and the admin’s secondary text color. Buttons are WordPress’s own buttons, so their corners and colors follow the admin; every button on an Aegis screen, including Save Settings, uses the same 32px size (24px for small ones). Segmented controls, filter chips, and pickers use the same 2px corners.
On plugin activation, a welcome redirect sends you to Aegis → Dashboard (?aegis_welcome=1 transient).
Settings Screens
Blocks, Conditionals, Integrations, Connectors, Performance, and Settings share one layout:
Search settings at the top left filters the settings in the open section.
Tools at the top right holds Export, Import, and Reset Defaults.
The sections are listed on the left. On narrow screens the list becomes one row you can scroll sideways.
Each section has a heading with Enable All and Disable All where they apply, then its settings in one card of rows.
On Integrations and Blocks → Map, each plugin or map provider has its own card with its name at the top.
Search settings looks through every section. Sections with matches show together, and the section list marks them; clearing the search goes back to the section you had open.
Save Settings is at the end of the section, like Save Changes on the WordPress settings screens.
Export / Import / Reset
On those six screens, Export, Import, and Reset Defaults are under Tools. Code Snippets has its own Export Snippets and Import Snippets under Tools on the snippets list, which move snippets and their code. See General Settings for export scope. Connectors reset only clears Connectors-owned toggles/credentials and analytics (not the full Integrations dashboard). Performance reset only clears Performance keys; Blocks reset leaves them unchanged. Hooks and Modals also have Export and Import under Tools; those move every Aegis setting, not the hook patterns or modals themselves. Presets has no export.
Export, Import, and Reset defaults are under Tools on each settings screen.
Modals Tab
Lists aegis/modal blocks on the site and creates draft pages from starters. Feature toggles remain at Aegis → Blocks → Modal. See Modals Tab.
Hooks Tab
Lists aegis_hook_pattern posts (Pro) with enable/disable, edit, delete, click-to-copy hook names, and whether each pattern is Always or Conditional. Condition types are configured at Aegis → Conditionals. See Hook Patterns.
Presets Tab
Lists saved visibility rule sets (Pro) with Add New, search, edit, and delete. Condition types are configured at Aegis → Conditionals. See Visibility Presets.
Blocks Tab Sections
The Blocks tab groups feature toggles by block. Site-wide performance toggles are at Aegis → Performance — see Performance.
Aegis → Blocks groups feature toggles by block.
Section
Purpose
Query Loop
Query shape, layout, AJAX, and WooCommerce sub-features
One of: only deactivating for a moment or to debug; it broke something or conflicted with another plugin; it’s missing a feature; you found a better plugin; you couldn’t get it to work; other. Every reason except the first opens a text field for a note (up to 2,000 characters)
Include my site address and WordPress and PHP versions
Off by default. Adds the site address, WordPress version, PHP version, and site language
You may email me about this
Off by default. Shows an email field filled with your account’s address, which you can change
Cancel
Closes the dialog. Nothing is deactivated or sent
Skip and deactivate
Deactivates without sending anything
Send and deactivate
Available once a reason is chosen. Sends the answer, then deactivates
The dialog does not appear for Bulk actions → Deactivate or for WP-CLI. Aegis itself can only be deactivated once the add-ons that require it are off, so its dialog appears last.
What is sent
Only when you press Send and deactivate, and only to Atmostfear Entertainment:
the plugin and its version;
the reason and your note;
the site address, WordPress and PHP versions, and language, only if you ticked that box;
your email address, only if you ticked You may email me about this.
The request is made from your server to https://www.atmostfear-entertainment.com/wp-json/aegis-feedback/v1/submit. It identifies itself as Aegis/{version} instead of WordPress’s default user agent, which would include your site address. Your server does not wait for the answer, and a failed send never stops the plugin from deactivating. Nothing is stored on your site.
For developers
Hook
Type
Use
aegis_deactivation_feedback_plugins
filter
Plugins that show the dialog, keyed by basename: array( 'slug' => …, 'name' => …, 'version' => … )
aegis_deactivation_feedback_endpoint
filter
Where answers are sent. Return an empty string to send nothing
aegis_deactivation_feedback_privacy_url
filter
The Privacy policy link under the form. Return an empty string to hide it
Moved from the theme; block names, markup, CSS classes and script handles are unchanged, so saved content keeps working. See Countdown, Slider and Slide, Toggle and Related Posts
core/video
WordPress core
Enhanced by the theme framework; the Aegis Video add-on provides the player (not a separate aegis/video block)
Aegis Dash registers the six moved blocks only when the theme has not already registered them (older theme releases), and only on the Aegis theme or a child theme.
Feature Toggles
Enable or disable block features at Aegis → Blocks (admin.php?page=aegis-blocks). Features are off by default on new installs.
Related Posts block — extras at Aegis → Blocks → Related Posts; see Related Posts
Slider
Slider and Slide blocks — extras at Aegis → Blocks → Slider; see Slider and Slide
SVG
Image variation (is-style-svg on core/image). Style registered in PHP. Extras at Aegis → Blocks → SVG. Paste markup in SVG Settings. Decorative icons use the Icon block, not this variation.
Each section includes sub-feature toggles. Items marked Pro require Aegis Pro.
Map Block
See Map Block for full documentation: API keys, OSM fallback, schema, Static Maps facade styles, and Aegis → Blocks → Map extras.
Interactive Google Maps with API keys under Aegis → Connectors → Google Maps
Click-to-load Static Maps facade using the same style presets (and Pro custom JSON) as the interactive map
Optional OpenStreetMap provider, plus an OSM fallback when Google has no key
Schema.org Local Business output when the schema extra is enabled
Modal Block
See Modal Block for full documentation: layouts, triggers, Aegis → Blocks → Modal extras, and render fallbacks.
Popup, off-canvas, bottom sheet, and fullscreen dialogs (the latter two extras fall back to popup when off)
Click triggers (button, text, icon, image) plus Pro exit intent, scroll depth, and time delay
Theme light/dark tokens on the dialog; close control Top right of screen (default) or On dialog
Instance list and starters at Aegis → Modals (starters enable the extras their patterns use)
Manage modal overview stats at Aegis → Modals. Create modal content by adding aegis/modal blocks in the editor.
Slider Block
Theme-owned (aegis/slider + aegis/slide). There is no parent Slider toggle: enabling any extra at Aegis → Blocks → Slider implies the block. Plugin demo patterns aegis/slider-* register only when the block is implied on.
Splide registers as WordPress handles (splide, splide-autoscroll) so the view script can mount. Default Slides Per Page is 1; existing saved blocks keep their stored value. Full attributes and Pro vs Splide notes: Slider and Slide.
Related Posts Block
Theme-owned (aegis/related-posts). There is no parent Related Posts toggle: enabling any extra at Aegis → Blocks → Related Posts implies the block.
Extra
Inspector
Off fallback
Related By
Related By
auto
Order By
Order By / Order
date, descending
Fallback Behavior
Fallback
latest posts
Style Variants
Grid / List / Cards / Minimal
grid
Excerpt Length
Excerpt Length
20 words
Image Aspect Ratio
Image Aspect Ratio
16/9
Heading, post count, columns, and display toggles stay available when the block is registered. Theme patterns blog-related-posts-{grid,list,cards,minimal} unregister when the block is implied off. Do not ship duplicate related-posts patterns from this plugin.
Full attributes, query filter, and Pro vs Query Loop notes: Related Posts.
Countdown Block
Plugin-owned (aegis/countdown). There is no parent Countdown toggle: enabling any extra at Aegis → Blocks → Countdown implies the block.
The datetime picker stays available when the block is registered. Full attributes: Theme Countdown.
Compare Block
Pro-only (aegis/image-compare). There is no parent Compare toggle: enabling any extra at Aegis → Blocks → Compare implies the block in the inserter. Saved blocks still render when extras are off.
All extras are Pro: orientation, before/after labels (including show-on-hover), starting position, slide on hover, circle handle, smooth motion, fluid clip. Smooth Motion extra off leaves the library default (smooth, 100ms). Aspect ratio, height, object-fit, and object-position stay on the theme Image inspector (not Blocks extras); height applies CSS custom properties on the wrapper. Pick two images on the block; extras only expose those inspector controls.
Theme-owned (aegis/toggle + aegis/toggle-content). There is no parent Toggle toggle: enabling any extra at Aegis → Blocks → Toggle implies the block.
Free extras: pill, switch, and button switcher styles; alignment; custom labels. Pro extras: URL sync, state persistence, animations (fade, slide, flip, scale on click), nested toggles, conditional visibility.
Pill and button styles follow Aegis light/dark tokens (page surface and theme button colors). The block is a two-view content switcher, not an accordion. Heading tag, icon type, FAQ schema, and allow-multiple were accordion leftovers and are removed. Full attributes: Theme Toggle.
Provided by Aegis Dash. Since Aegis Dash 1.1.0 this block is registered by the plugin. It appears in the inserter once one of its settings is on at Aegis → Blocks → Countdown; there is no separate switch for the block itself. A site that already used the block through the Aegis theme has those settings turned on the first time Aegis Dash 1.1.0 loads. The theme only registers its own copy while Aegis Dash is not providing the block. Extras marked Pro need Aegis Pro.
Property
Value
Block name
aegis/countdown
Registered by
Aegis Dash 1.1.0 or newer
Render
Dynamic (render.php + view.js)
Requires
Aegis Dash and the Aegis theme (Pro sub-features optional)
Key attributes
Attribute
Type
Default
Description
datetime
string
""
Target date/time (ISO 8601)
showDays / showHours / showMinutes / showSeconds
boolean
true
Visible time units
labels
object
Days, Hours, …
Unit labels
separator
string
colon
colon, dot, dash, or none
layout
string
inline
inline or stacked
expiryMessage
string
""
Shown when countdown reaches zero
timezone
string
utc
utc or local
schemaEnabled
boolean
false
Event schema markup
schemaEventName / Description / Location / Url
string
""
Schema.org Event fields
Usage
Set the target date and time in the Countdown settings.
Insert the Countdown block from the block inserter.
Set Target date in the block sidebar.
Toggle which units to display (days, hours, minutes, seconds).
Customize labels, separator, and layout.
Add an Expiry message for when the timer ends.
Optionally enable Event schema for SEO.
Aegis → Blocks → Countdown
There is no parent Countdown toggle. Enabling any extra implies the block (same pattern as Related Posts and Slider). Without Aegis Dash (the theme’s own copy), all free extras behave as on.
Countdown options in Aegis → Blocks.
Extra
Inspector
Off fallback
countdown_segments
Show Days / Hours / Minutes / Seconds
all units on
countdown_labels
Days / Hours / Minutes / Seconds labels
default English labels
countdown_separator
Separator
colon
countdown_layout
Layout
inline
countdown_expiry_message
Expiry Message
empty (timer stays visible at zero)
countdown_timezone
Timezone
utc
countdown_schema
Schema.org Event
schema not output
The datetime picker stays available when the block is registered. Inspector extras are passed as window.aegisCountdownFeatures on the block editor script.
Pro sub-features
Aegis → Blocks → Countdown Pro extras (when Aegis Pro is licensed): evergreen timer, animation styles, auto-restart, expiry actions, and urgency styling. Each extra is gated like Map/Slider. The inspector reads window.aegisCountdownEditor.features.
Provided by Aegis Dash. Since Aegis Dash 1.1.0 this block is registered by the plugin. It appears in the inserter once one of its settings is on at Aegis → Blocks → Slider; there is no separate switch for the block itself. A site that already used the block through the Aegis theme has those settings turned on the first time Aegis Dash 1.1.0 loads. The theme only registers its own copy while Aegis Dash is not providing the block. Extras marked Pro need Aegis Pro.
Block
Name
Role
Slider
aegis/slider
Carousel wrapper — settings, navigation, autoplay
Slide
aegis/slide
Single panel — holds any inner blocks
Slide blocks only insert inside a Slider (parent: aegis/slider in block.json).
Slider attributes
Attribute
Type
Default
Description
type
string
slider
slider, marquee (Splide AutoScroll; not the Group Marquee variation), or fade
perPage
number
1
Visible slides
perMove
number
1
Slides advanced per navigation
autoplay
boolean
false
Auto-advance
pauseOnHover
boolean
true
Pause autoplay on hover
loop
boolean
false
Infinite loop
drag
boolean
true
Touch/mouse drag
showArrows / showDots
boolean
true
Navigation UI
speed
number
400
Transition ms
interval
number
5000
Autoplay interval ms
direction
string
ltr
ltr, rtl, or ttb
height
string
""
Optional fixed height
breakpoints
boolean
true
Responsive perPage
keyboard
boolean
true
Arrow keys when the slider is focused
Slide block
Container for slide content — images, text, buttons, etc.
Supports background and text colors, padding
Renders as <div class="splide__slide"> via render.php
Usage
Add Slide blocks inside the Slider and set navigation in the sidebar.
Insert the Slider block (defaults include three Slide children, one visible at a time).
Build content inside each Slide.
Configure autoplay, arrows, dots, and loop in Slider settings. Raise Slides Per Page to show more than one slide at once.
Set Type to marquee for continuous scrolling (uses Splide AutoScroll). That is not the Group Marquee variation — see Block variations and Aegis Dash Marquee.
Set Type to fade when the Fade extra is on (Splide fade; one slide per page).
New sliders default to Slides Per Page 1. Saved blocks keep their stored perPage. A template that still has "perPage":3 with three slides shows every slide at once, so Splide hides overflow arrows and dots. Set Slides Per Page to 1 or add more slides. See Common Issues.
Aegis → Blocks → Slider
There is no parent Slider toggle. Enabling any extra implies the block (same pattern as Related Posts). Without Aegis Dash (the theme’s own copy), all free extras behave as on. The aegis/slide child uses the same parent key.
Slider options in Aegis → Blocks.
Extra
Inspector
Off fallback
slider_slide
Implies the block (default slide type stays available)
Slide type remains the default
slider_fade
Type: Fade
Fade remaps to slide
slider_navigation
Show Arrows
arrows off
slider_pagination
Show Dots
dots off
slider_loop
Loop
loop off
slider_keyboard
Keyboard Navigation
keyboard off
slider_responsive
Responsive Breakpoints
breakpoints off
slider_autoplay
Autoplay / Interval / Pause on Hover (Pro extra)
autoplay off
Type (slider/marquee), per page, per move, speed, direction, height, and drag stay available when the block is registered.
Plugin demo patterns aegis/slider-* register only when Slider is implied on. Inspector extras are passed as window.aegisSliderFeatures on the block editor script.
Pro sub-features
Aegis → Blocks → Slider Pro extras (when Aegis Pro is licensed): fade effect, thumbnails, lightbox, mousewheel, aspect ratio, lazy loading, arrow styles, dot styles, and an autoplay pause control. Each extra is gated like Map/Countdown. The inspector reads window.aegisSliderEditor.features. Frontend extras run on Splide. Swiper-only effects (cube, coverflow, flip, cards, creative) were leftover from an older stack and are not offered.
Registration: src/Blocks/BlockRegistrar.php — directory slide maps to parent key slider; extras imply that parent
Inspector extras: window.aegisSliderFeatures inlined on the registered editor script handle
Splide JS/CSS register from vendor/aegis/framework/public on init 8 (splide and splide-autoscroll scripts; splide style). On init 20 the generated slider view handle depends on splide.
Styles: block.jsonstyle is file:style-index.css plus the splide handle. Webpack compiles style.scss because index.tsx imports it (same pattern as Related Posts).
View scripts: view.js, splide, splide-autoscroll. view.ts waits until Splide is defined before mounting.
Editor canvas lays slides in a horizontal row (--aegis-slider-per-page). Arrows and dots in the editor are decorative chrome, not interactive Splide controls.
Accessibility: keyboard arrow navigation — see Accessibility
This matches the Gutenberg Toggle Content pattern (primary / secondary inner content and a pill, switch, or button control).
Overview
Note
Provided by Aegis Dash. Since Aegis Dash 1.1.0 this block is registered by the plugin. It appears in the inserter once one of its settings is on at Aegis → Blocks → Toggle; there is no separate switch for the block itself. A site that already used the block through the Aegis theme has those settings turned on the first time Aegis Dash 1.1.0 loads. The theme only registers its own copy while Aegis Dash is not providing the block. Extras marked Pro need Aegis Pro.
Block
Name
Role
Toggle
aegis/toggle
Switcher control + two views
Toggle Content
aegis/toggle-content
One view (slota or b)
Toggle Content only inserts inside a Toggle block. The inserter template creates both views.
Toggle attributes
Attribute
Type
Default
Description
switchStyle
string
switch
pill, switch, or buttons (limited to enabled extras)
alignment
string
center
left, center, or right
primaryLabel
string
empty
Label for view a (translated “First” when empty)
secondaryLabel
string
empty
Label for view b (translated “Second” when empty)
initialContent
string
a
Which view is shown first
animationDuration
number
300
Transition duration in ms (pill/switch motion and Pro animations)
allowNested
boolean
false
Allow a Toggle inside Toggle Content (Pro extra toggle_nested)
instanceId
string
empty
Stable id for persist/ARIA, set from the editor clientId
Saved accordion-era Toggle blocks (heading + one content pane) migrate to a switcher: the heading becomes the primary label, existing content becomes view a, and an empty view b is added. Migration only runs when inner blocks are not already Toggle Content.
Usage
Each Toggle Content block is one switchable panel.
Enable at least one extra at Aegis → Blocks → Toggle (Pill, Switch, or Buttons is enough).
Insert the Toggle block.
Edit the two labels (with Custom Labels on) and add blocks inside each Toggle Content view.
Click a label to preview the other view in the editor. Selecting a block inside a view also switches the preview to that view.
Optionally set alignment and which view is shown first.
Appearance (light and dark)
Pill, switch, and button styles use Aegis mode tokens so labels stay readable in light and dark:
Toggle in light and dark mode.
Pill chip and switch thumb: --wp--custom--body--background (page surface)
Pill active label: --wp--custom--body--color
Buttons active fill/text: --wp--custom--button--background and --wp--custom--button--color (same as theme core/button)
Do not use WordPress base / contrast presets — this theme does not define them.
Aegis → Blocks → Toggle
There is no parent Toggle toggle. Enabling any extra implies the block (same pattern as Related Posts and Slider). Without Aegis Dash (the theme’s own copy), all free extras behave as on. The aegis/toggle-content child uses the same parent key.
Extra
Inspector / render
Off fallback
toggle_pill
Pill switcher style
Style unavailable; another enabled style (or Switch) is used
toggle_switch
Switch (track + thumb) style
Style unavailable
toggle_buttons
Separate button style
Style unavailable
toggle_position
Alignment (left / center / right)
center
toggle_labels
Editable primary and secondary labels
Labels stay “First” / “Second”
toggle_animations
Animation duration (Pro extra, shown in the free inspector)
300 ms
Inspector extras are passed as window.aegisToggleFeatures on the block editor script.
Pro sub-features
Aegis → Blocks → Toggle Pro extras (when Aegis Pro is licensed): URL sync (?param=a / b), state persistence, animations (fade, slide, flip, scale), nested toggles inside Toggle Content, and conditional visibility of other elements. Duration stays on the theme inspector so it is not duplicated in the Pro panel. The inspector reads window.aegisToggleEditor.features. Nested Toggle inserts require the extra andAllow Nested Toggles on that block.
On click, the theme script updates the control and dispatches aegis:toggle:changed without swapping panel .is-active when a Pro animation class is present. Pro toggle-view.js then runs animateTransition(). URL init, persist restore, and prefers-reduced-motion: reduce swap instantly. A URL param wins over stored state. Nested switcher events are ignored. Persist keys use data-toggle-id from the HTML anchor, else saved instanceId, else a hash of the block source. Back/forward with URL sync also updates conditional visibility.
FAQ schema is not part of this block. Accordion List has accordion_faq_schema.
Registration: src/Blocks/BlockRegistrar.php — directory toggle-content maps to parent key toggle; extras imply that parent
Styles compile from style.scss via import './style.scss' to style-index.css (same as Slider)
Frontend: view.js scopes clicks and panel updates to this instance (:scope > .aegis-toggle__control / :scope > .aegis-toggle__panels), then dispatches aegis:toggle:changed. Hidden views use data-active / data-slot (not a global :not(.is-active) hide, which would blank the editor canvas)
Editor: templateLock is off so inner paragraphs stay editable; the parent appender is hidden so a third view is not offered. Selecting inner content switches only the Toggle that owns that Toggle Content
Duration is output as --aegis-toggle-duration and --toggle-animation-duration on the wrapper
Provided by Aegis Dash. Since Aegis Dash 1.1.0 this block is registered by the plugin. It appears in the inserter once one of its settings is on at Aegis → Blocks → Related Posts; there is no separate switch for the block itself. A site that already used the block through the Aegis theme has those settings turned on the first time Aegis Dash 1.1.0 loads. The theme only registers its own copy while Aegis Dash is not providing the block. Extras marked Pro need Aegis Pro.
Property
Value
Block name
aegis/related-posts
Registered by
Aegis Dash 1.1.0 or newer
Render
Dynamic (render.php + RelatedPostsQuery.php)
Requires
Aegis Dash and the Aegis theme
This is the canonical related-posts path. The former core/query Related Posts variation was removed — see Updating.
Insert Related Posts (typically on single post templates).
Set post count and layout variant.
Choose Related by (auto taxonomies, category, tag, or author).
Optionally set Order by (date, title, or random).
Configure fallback when no related posts exist.
The editor canvas shows a live preview of the chosen layout. On a public post it queries related posts for that content; in the pattern library, Site Editor, or other contexts without a public post it previews the latest posts. On the public site the block still renders only on singular views (not archives or the front page).
Content options (heading, post count, columns, excerpt length, image ratio) apply in both the editor preview and on the frontend. Excerpt length appears only when Show Excerpt is on; image aspect ratio appears only when Show Featured Image is on. Columns apply to every style variant. Query options (related by, order by, order, fallback) apply to the editor preview and the public site.
Aegis → Blocks → Related Posts
There is no parent Related Posts toggle. Enabling any extra implies the block (same pattern as Query Loop). Without Aegis Dash (the theme’s own copy), all free extras behave as on.
Related Posts options in Aegis → Blocks.
Extra
Inspector
Off fallback
related_posts_taxonomy_source
Related By
auto
related_posts_orderby
Order By / Order
date, descending
related_posts_fallback
Fallback Behavior
latest posts
related_posts_style_variants
Style Variant (grid, list, cards, minimal)
grid
related_posts_excerpt_length
Excerpt Length
20 words
related_posts_image_ratio
Image Aspect Ratio
16/9
Heading, post count, columns, and display toggles (image, date, excerpt, category) are always available when the block is registered. The Related Posts patterns (aegis/related-posts-cards, -grid, -list, -minimal) register only while the block is on.
Inspector extras are passed as window.aegisRelatedPostsFeatures on the block editor script. The editor canvas uses server-side render, so PHP fallbacks apply in the preview as well as on the public site.
Advanced querying (Pro)
For advanced related-post logic on core/query, use Aegis ProaegisProRelatedPosts — see Query Loop Pro. That extends Query Loop; it does not replace aegis/related-posts.
Developer notes
Query logic: src/Blocks/RelatedPostsQuery.php
Registration: src/Blocks/BlockRegistrar.php — directory related-posts maps to parent key related_posts; extras imply that parent
Inspector extras: window.aegisRelatedPostsFeatures inlined on the registered editor script handle
Patterns: patterns/blog/related-posts-*.php — slugs blog-related-posts-* ({category}-{file-slug}); unregistered when the block is implied off
Build: webpack compiles index.tsx / edit.tsx in place (block.jsoneditorScript is file:index.js)
You can set the block provider to OpenStreetMap at any time (no API key). OpenStreetMap Fallback is separate: when it is on and Google Maps has no key, a block set to Google Maps renders OSM instead. When the fallback is off, that block shows a configuration notice instead of OSM.
Feature Toggles
Enable extras at Aegis → Blocks → Map. They are grouped by provider. They are off on new installs. Existing sites keep previously implicit-on extras.
Google Maps
Toggle
What it does
Map Style Presets
Silver, Dark, Retro, Night, and Aubergine Google Maps styles (also applied to the Static Maps facade).
Map Controls
Zoom, map type, street view, fullscreen, scroll-wheel, and drag controls.
Directions
Pro. Route between origin and destination (addresses resolved with the server Geocoding key; frontend receives coordinates only).
Store Locator
Pro. Search box matches marker titles or lat,lng, then draws a radius circle.
Geolocation
Pro. Button to show the visitor’s location.
Heatmap Layer
Pro. Density overlay (loads the Google visualization library).
Drawing Tools
Pro. Polygon, circle, rectangle, and polyline overlays.
KML/GeoJSON Import
Pro. External geographic data layers.
Dynamic CPT Markers
Pro. Markers from a custom post type’s lat/lng meta.
Custom Style JSON
Pro. Raw Google Maps style array (overrides presets, including the Static Maps facade).
Custom Marker Icons
Pro. Media-library marker icons (interactive map and editor preview; not the static facade).
Marker Clustering
Pro. Groups nearby markers at lower zoom levels (vendored MarkerClusterer, no CDN). Editor preview included.
OpenStreetMap
Toggle
What it does
OpenStreetMap Fallback
Use OSM when a Google Maps block has no API key. You can also set the block provider to OpenStreetMap directly.
Shared
Toggle
What it does
Multiple Markers
Extra markers with title/description info windows. The primary location pin always remains.
Schema.org Markup
LocalBusiness JSON-LD from the block’s schema fields (skipped when an SEO plugin owns local business schema).
Pro inspector panels and frontend output follow these toggles. Schema markup is a free feature, not a Pro panel.
Usage
Set the location and map options in the block settings.
Install and activate the Aegis theme and Aegis plugin.
Enable the Map block extras you need at Aegis → Blocks → Map.
Configure Maps under Aegis → Connectors → Google Maps (optional if you only use OSM).
Insert the Map block and set location, zoom, and extras.
Google Maps uses a click-to-load facade (static preview with the same style presets as the interactive map, then the JS API). Contact patterns aegis/form-map and aegis/form-map-overlay register only while the Map block is enabled — see Plugin Patterns.
Rendering
Click-to-load facade
Google Maps blocks render a Static Maps image until the visitor clicks. That image uses the same style presets as the interactive map. Pro Custom Style JSON overrides the preset on the facade when the extra is on and the value is a non-empty JSON array.
Maps load only when the visitor clicks.
Custom marker icons are not drawn on the static image; they apply after the interactive map loads. If adding style rules would make the Static Maps URL longer than about 8192 characters, the facade omits styles so the image still loads.
Editor preview
The block editor shows the Google Map when a browser API key is configured. Style presets and markers follow the free extras. With Pro extras on, custom icons, custom style JSON, and clustering apply in the editor preview. Directions, heatmap, and drawing run on the frontend (Directions addresses are geocoded server-side first).
Marker clustering (Pro)
Clustering uses a vendored MarkerClusterer (@googlemaps/markerclusterer 2.5.3) bundled with Aegis Pro. It does not load from a CDN. The script is enqueued when Marker Clustering is enabled.
The theme does not register this block. Enable it (or any Modal extra) at Aegis → Blocks → Modal. Site-wide instance management is at Aegis → Modals — see Modals Tab.
Feature Toggles
Enable extras at Aegis → Blocks → Modal. They are off on new installs. Existing sites keep previously implicit-on free extras (button, icon, text, image, off-canvas, fullscreen, animations).
Enabling any Modal extra also turns the parent block on (same prefix rule as other Blocks sections). There is no separate parent Modal toggle.
Free plugin
Toggle
What it does
Button Trigger
Render a button that opens the modal. Off: no button trigger.
Icon Trigger
Open from an inline SVG/HTML icon button.
Text Trigger
Open from a text-style control.
Image Trigger
Open from a selected image.
Off-Canvas Modes
Off-canvas (side panel) and bottom-sheet layouts. Off: those types render as a centered popup.
Fullscreen Mode
Full-viewport layout. Off: fullscreen blocks render as a popup.
Animations
Fade, slide, and zoom. Off: no enter animation.
Popup layout, close behavior, focus trap, and size controls stay available while the block is on. The dialog surface and close control follow the theme light/dark tokens (--wp--custom--body--background / --wp--custom--body--color) unless a custom overlay or background color is set. Legacy #ffffff / rgba(0,0,0,0.5) values are treated as unset so they do not freeze light mode.
Close Button Position
Option
Where the control sits
Top right of screen (default)
Overlay corner (position: fixed), same as Lightbox
On dialog
Top-right of the panel for every layout, including popup and fullscreen
An icon trigger with no custom HTML uses a default SVG. An image trigger with no selected image falls back to the trigger text button.
Pro
Toggle
What it does
Exit Intent
Exclusive trigger type and a stacking Pro toggle (open when the pointer leaves the top of the viewport).
Scroll Depth
Exclusive trigger type and a stacking Pro toggle (open after a scroll percentage).
Time Delay
Exclusive trigger type and a stacking Pro toggle (open after N seconds).
Auto Close
Close the dialog after a delay.
Show Once
Remember the visitor in localStorage for a number of days.
Device Visibility
Limit the modal to desktop, tablet, and/or mobile.
Existing Pro sites keep these extras enabled via a one-time migration (aegis_modal_pro_toggles_v1). New installs leave them off. They are not in the generic v3 legacy snapshot (same pattern as Map and Marquee Pro extras).
Pro inspector panels and stacking triggers follow these toggles. Exclusive Pro trigger types in the free inspector follow the same flags, including extra fields that used to live only in the Pro panels (exit-intent sensitivity/delay, scroll percentage and once-per-load).
Show Once uses the free showOnce attribute (set by the Newsletter and Cookie patterns) and the Pro showOnceEnabled toggle. The Pro inspector reads and writes both so turning the panel off actually disables remember-me for those patterns.
Usage
Build the modal’s content and choose how it opens. Click a picture to choose the type or trigger.
Enable the Modal extras you need at Aegis → Blocks → Modal.
Insert Modal (or start from Aegis → Modals).
Choose a layout and trigger, then add inner blocks as the dialog body.
Optional: place on another page to render the same instance (see Modals Tab).
Saved attributes are not deleted when an extra is turned off. Render falls back: disabled trigger types use the first enabled click trigger (or none), off-canvas/fullscreen become popup, animations become none, and Pro behaviors are omitted from the frontend data attributes. The editor Select controls show that same fallback without rewriting the saved block.
Rendering
A modal as visitors see it.
PHP render.php outputs the trigger (when a click extra is on), the hidden dialog, and data-* attributes the view script reads.
view.js opens/closes the dialog, traps focus, clears auto-close timers on close, and honors gated automatic triggers.
Frontend and editor styles live in src/Blocks/modal/style.css.
Pro stacking triggers (click plus exit intent/scroll/time delay) use aegis-modal-pro-view. Auto-close, show-once, and device rules reuse the free data attributes. Device hiding uses Pro CSS media-query classes when those extras are on; the free script only applies a one-shot hide when those classes are absent.
Patterns
Plugin patterns aegis/modal-video, aegis/modal-contact, aegis/modal-newsletter, and aegis/modal-cookie-consent live in patterns/modal/ and register from config/patterns.php only while the Modal block is enabled. The theme does not ship modal patterns — do not re-add drafts under themes/aegis/patterns/modal/.
Creating a starter from Aegis → Modals turns on the extras that pattern needs:
Starter
Always enables
Also enables when Aegis Pro is licensed
Blank / Contact / Video
Button Trigger; Contact and Video also enable Animations
The theme does not register a separate aegis/marquee block. Do not confuse this with the Slider block’s type: marquee option (Splide AutoScroll) — that is aegis/slider. See Slider and Slide Blocks.
When the plugin is inactive, the framework treats Marquee as enabled.
Feature Toggles
Enable extras at Aegis → Blocks → Marquee. They are off on new installs. Existing sites keep previously implicit-on extras.
Enabling any Marquee extra also turns the parent variation on (same prefix rule as other Blocks sections).
Free plugin
Toggle
What it does
Pause on Hover
Pause the CSS animation on hover and focus. Off: animation keeps running.
Direction Control
Reverse the scroll (right-to-left). Off: always forwards.
Speed Control
Loop duration in seconds (lower is faster). Off: 60s mobile / 90s desktop.
Repeat Items
How many times inner items are cloned for a seamless loop (0–10). Off: clone twice.
Fade Edges is always available while Marquee is on. It adds the fade-horizontal utility mask (not a Blocks toggle). Legacy fade-edges classes are rewritten to fade-horizontal on render.
Pro
Toggle
What it does
Responsive Speed
Separate Desktop duration from Mobile. Desktop applies from 782px wide (editor canvas and frontend). Off: one Duration control; both breakpoints use that value.
Existing Pro sites keep Responsive Speed enabled via a one-time migration (aegis_marquee_pro_toggles_v1). New installs leave it off. It is not in the generic v3 legacy snapshot (same pattern as Map Pro extras).
Usage
The Marquee variation and its settings.
Enable Marquee extras you need at Aegis → Blocks → Marquee.
In the editor, insert Marquee (Group variation) or set a Group’s layout orientation to marquee.
Add inner blocks (text, logos, or a nested horizontal Group).
Use Marquee Settings for loop duration, repeats, pause, reverse, and fade edges (controls follow the toggles above).
Loop duration is the time for one full cycle, not pixels-per-second. With Responsive Speed on, change Desktop on a wide canvas; Mobile applies below 782px.
The editor canvas applies CSS custom properties on the block wrapper. The frontend PHP render wraps children in .is-marquee, clones them, and sets duration on each .aegis-marquee-item.
Rendering
Animation is CSS-only (marquee.css). There is no Marquee JavaScript on the frontend.
PHP render moves children into an inner .is-marquee track, clones them, and stamps a per-block duration on .aegis-marquee-item (so layout CSS cannot keep a default 60s/90s loop).
--marquee-speed-mobile / --marquee-speed-desktop (and a --marquee-speed alias), --marquee-direction, --marquee-pause, and --marquee-gap live on that track.
Items use width: max-content so duration maps to content width instead of a stretched full-width Group.
WordPress treats unknown flex orientations as a column; the track is forced to a horizontal scroller.
prefers-reduced-motion: reduce pauses the frontend animation (the editor canvas may still move).
When the parent Marquee toggle is off, is-marquee is stripped so saved blocks render as ordinary Groups (no clone wrapper, variation hidden from the inserter).
Patterns
Theme Feature Banner (patterns/cta/banner.php) — scrolling announcement bar.
Pro Feature Icon Boxes (icon-boxes-split) — two logo strips with fade edges.
The theme does not register a separate aegis/newsletter block. Do not confuse this with:
Theme Newsletter patterns (patterns/newsletter/*) — Group + Button CTAs, not this variation
Plugin Modal Newsletter (aegis/modal-newsletter) — a Modal starter, documented under Modal Block
When the plugin is inactive, the framework treats Newsletter as enabled.
The newsletter style is registered once in PHP (Newsletter::register_style()), not via BlockStyles. When Newsletter extras are off, newsletter-editor.js hides the variation and unregisters the style.
Feature Toggles
Enable extras at Aegis → Blocks → Newsletter. They are off on new installs. Existing sites keep previously implicit-on extras.
Enabling any Newsletter extra also turns the parent variation on (same prefix rule as other Blocks sections). There is no separate parent Newsletter toggle.
Signup vs decorative fields
A field is a signup when it has a submit button (the default inserter variation) or when it is no-button and the saved placeholder is empty or contains “email”.
Decorative skins (Pro contact hero First name / Last name / Phone) stay type="text", are not required, never show the success message, and do not dispatch aegis-newsletter-submit. They still have search action stripped so they do not run a site search.
Free plugin
Toggle
What it does
Email Validation
On signup fields, set type="email", autocomplete="email", and inputmode="email". Off: signup fields stay type="text". Signup fields are always required.
Success Message
After submit on a signup field, hide the field and show “Thanks for subscribing.” Off, and on decorative fields: no confirmation UI.
Custom Placeholder
Honor the Search block’s placeholder on the input. Off: show “Email address”. Signup vs decorative still uses the saved placeholder and button.
Pro does not add Newsletter extras. Aegis Pro’s contact hero pattern reuses is-style-newsletter as a visual input skin; keep Custom Placeholder on if those fields should keep First name / Last name text.
Usage
The Newsletter variation on the front end.
Enable the Newsletter extras you need at Aegis → Blocks → Newsletter.
In the editor, insert Newsletter (Search variation) or apply the Newsletter style to a Search block.
Set placeholder and button text on the Search block (placeholder is used on the frontend only when Custom Placeholder is on).
The form does not POST to WordPress search. Submit is preventDefault. On signup fields the theme dispatches aegis-newsletter-submit with { email } so a plugin or snippet can send the address to a mailing list.
Rendering
PHP Newsletter.php (priority 11, after Search) strips action / method / role, removes a leftover search icon, names the input newsletter, and applies extras. Signup fields get data-aegis-newsletter-signup.
newsletter.js handles submit, native validity, the custom event, and the success state (event and success only on signup fields).
newsletter.css hides the search icon and styles the success message.
The editor script unregisters the bundled variation (and the Newsletter style) when the parent is off, and re-registers a Subscribe variation when it is on.
When Newsletter is off, is-style-newsletter is stripped so leftover CSS does not hide the search icon; the variation is hidden from the inserter.
Patterns
Theme Newsletter CTA (patterns/cta/newsletter.php) and Commerce Newsletter (patterns/cta/commerce-newsletter.php) use is-style-newsletter.
Theme Newsletter category patterns (banner / inline / split) are button CTAs, not this Search variation.
There is no separate parent Query Loop toggle. Enabling any Query Loop extra also turns the parent on (same prefix rule as other Blocks sections). When the plugin is inactive, the framework treats extras as enabled.
Do not confuse this with:
Theme aegis/related-posts — a separate custom block under Aegis → Blocks → Related Posts
Pro Related Posts on Query Loop — an inspector option on core/query (aegisProRelatedPosts), not a block variation
Feature Toggles
Extras are off on new installs. Existing sites keep previously implicit-on free extras.
Free plugin
Toggle
What it does
Multiple Post Types
Query more than one public post type.
Taxonomy Filtering
Filter by category, tag, or custom taxonomy.
Include/Exclude Posts
Manually include or exclude post IDs.
Custom Field Query
Filter by a custom field key, compare, and value.
Order by Custom Field
Sort by a custom field.
Extended Ordering
Random (with optional seed), comment count, modified, menu order, author, slug, parent.
Responsive Columns
Column counts for mobile, tablet, and desktop. 0 leaves the Query Loop’s own layout at that breakpoint. A count greater than 0 adds aegis-query-cols-mobile, aegis-query-cols-tablet, or aegis-query-cols-desktop and forces an Aegis grid only in that viewport (mobile below 782px, tablet 782–1023px, desktop 1024px and up).
Gap Controls
Row and column gap on the post template grid.
Featured First Post
First post spans multiple columns (needs Responsive Columns or a grid Query Loop).
Equal Height Cards
Stretch query cards to equal height.
No Results Template
Custom message, style, icon, and optional search form when the query is empty.
Offset and sticky-post handling have no extra of their own. They apply whenever any Query Loop extra (including Performance) implies the parent is on.
Pro
Toggle
What it does
Advanced Meta Query
Multiple meta clauses with AND/OR.
Date Query
Relative ranges, after/before dates, or a specific year/month/day.
Parent/Child Posts
Query children of the current or a specific post.
Field Picker
Field picker in Advanced Meta Query when ACF or Meta Box is active and that Integrations → Developer toggle is on.
AJAX Pagination
Load more, infinite scroll, or AJAX page numbers.
Frontend Filters
Taxonomy, search, and sort filters on the frontend.
Masonry Layout
CSS or JS masonry grid.
Carousel Layout
Slider with navigation, dots, autoplay, and loop.
Product Query
Product query filters (also requires Aegis → Integrations → E-commerce → WooCommerce and WooCommerce active). Attributes still register when those are off so saved settings are not stripped.
Query Loop Performance (caching, lazy-load, skeleton, prefetch) lives at Aegis → Performance, not on the Blocks page. See Performance.
Usage
Aegis options added to the Query Loop block.
Enable the extras you need at Aegis → Blocks → Query Loop.
Insert a Query Loop block.
Open the inspector panels that match those extras (Query Parameters, Layout, No Results, and Pro panels). Layout lives on the Query Loop inspector, not on the Display panel. Pro panels expose the full settings each module uses, not just an enable toggle.
Layout CSS (query-layout.css, class aegis-query-layout) loads on the frontend when the block outputs those classes, and in the editor so column/gap/featured/equal-height changes preview on the canvas. No Results CSS (query-no-results.css) loads in the editor when the No Results extra is on.
Rendering
Framework QueryEnhancements.php maps extras to query_loop_block_query_vars.
QueryLayout.php adds CSS custom properties and per-breakpoint classes (aegis-query-cols-*) on render_block_core/query.
QueryNoResults.php replaces an empty post template when No Results is on.
Editor: query-enhancements-editor.js (free) and Pro query-builder-editor.js.
Pro modules keep attributes registered so saved content is not stripped; behavior is gated by extras.
A block’s own setting in the editor always wins over these defaults.
Free Settings
Setting
Default
What it does
Copy Button
On
Shows a Copy to clipboard button on code blocks. Off: no button unless a block turns it on.
Line Numbers
Off
Numbers the lines of code blocks by default.
Wrap Long Lines
Off
Wraps long lines instead of scrolling sideways.
Language Label
Off
Shows the language in the top left corner. Add a class such as language-php to the block.
The copy button has always been on, so it stays on until you switch it off.
Pro Settings
These need Aegis Pro. Without it the toggles are locked and marked Pro Feature.
Setting
How you use it
Collapse Long Blocks
Automatic. A block over 20 lines is cut off with a Show more button underneath.
Filename Bar
Start the block with a comment line such as // file: functions.php. It becomes a bar above the code, and the line is not shown or copied.
Highlight Lines
After the filename line, add a comment such as // highlight: 3,7-9. Those lines get a background. Line numbers count the code that is shown.
Download Button
Adds a button that saves the block as a file, named after the filename bar, or code.<language>, or code.txt.
Copy Button Position
Add the class copy-left or copy-bottom to the block to move the copy button.
The directive comments can start with //, #, /*, or <!--. The filename line comes first, then the highlight line. If a setting is off, its comment line is shown as ordinary code.
Code Block Pro and Syntax Highlighting
These settings are for the core Code block. If Code Block Pro or Syntax Highlighting Code Block is active, those blocks have their own settings. Connect them on Aegis → Integrations.
For Developers
aegis_code_block_default filters each default. It receives the value and the setting name (copy_button, line_numbers, wrap_lines, language_label, collapse, filename, highlight_lines, download, or copy_position).
aegis_code_block_collapse_lines changes the 20-line cutoff for Collapse Long Blocks.
When the plugin is inactive, framework defaults treat features as enabled.
Accordion (core/list), Newsletter (core/search), and SVG (core/image) styles are registered once in PHP (register_style()), not also via BlockStyles. The SVG inspector is svg-editor.js (no Optimize SVG / SVGOMG control).
Available Variations
Variation
Base Block
Toggle key
Accordion List
core/list
accordion
Counter
core/paragraph
counter
Curved Text
core/paragraph
(framework)
Grid
core/group
(framework)
Marquee
core/group
marquee
Newsletter
core/search
newsletter
SVG
core/image
svg (is-style-svg). Extras: paste markup, mask, onclick, inline-in-text, inline .svg files. Not the Icon block — see Theme SVG.
See Newsletter for Email Validation, Success Message, and Custom Placeholder extras.
Note
Related Posts vs Query Loop. The theme’s aegis/related-posts block is a separate custom block (Aegis → Blocks → Related Posts). Query Loop extras apply only to core/query. Pro can add a related-posts query mode on Query Loop (aegisProRelatedPosts); that is not a block variation and is not the Related Posts block.
See Query Loop for the full Query Loop extra list.
Query Loop (core/query): post types, taxonomy, include/exclude, meta, layout, no results, Field Picker, Product Query — Query Loop. Query Loop Performance gating is at Aegis → Performance
Related Posts (aegis/related-posts): Related By, Order By, Fallback, Style Variants, Excerpt Length, Image Aspect Ratio — Theme Related Posts. Not Query Loop’s aegisProRelatedPosts mode.
Map (aegis/map): Google Maps style presets (including the Static Maps facade), controls, and Pro extras; OpenStreetMap fallback; Shared markers and schema — Map
Marquee (core/group): pause on hover, direction, loop duration, repeat clones; Pro: responsive desktop duration from 782px — Marquee
SVG (core/image): Paste Markup, Mask Mode, Onclick, Inline SVG in text, Inline SVG files — Theme SVG. Empty SVG shows the Aegis placeholder (preview-only) until markup is pasted in SVG Settings. No Optimize SVG control. Not the Icon block.
Video (core/video): The video settings are in the Aegis Video add-on (Aegis → Video → Settings). The Dashboard shows an Aegis Video card to install or activate it. Without Aegis Video, Video blocks use the browser player and these extras are off. Free: Custom Player, Player styles, Theater Mode and Keyboard Shortcuts (require Custom Player), Schema Markup; Pro: ambient light, thumbnail preview, touch gestures, playlists, sticky player, focus mode, save progress, chapters, email capture (includes CTA overlays / action bar / YouTube subscribe in the same module; Mailchimp/ConvertKit subscribe only), analytics, multi-audio, privacy, video sitemap (SEO plugin adapters). There is no parent Video toggle — each extra is independent. Muted autoplay is per-block when any Engagement extra is on. BunnyCDN is Aegis → Connectors → BunnyCDN. LearnDash, LifterLMS, and FluentCRM inspector panels follow Aegis → Integrations (LMS / CRM), not Blocks extras.
Feature flags (triggers, layouts, Pro behaviors) stay at Aegis → Blocks → Modal. This page does not duplicate those toggles.
What You See
Aegis → Modals lists every modal on the site.
The screen uses the shared Aegis admin layout:
Search modals at the top left filters the list as you type (title, location, ID, shortcode, trigger).
Tools at the top right has Export and Import. They download or load every Aegis setting as a .json file, the same as on the settings screens; they don’t export modals.
Add Modal opens the starter chooser (see below).
When no Modal trigger is on at Aegis → Blocks → Modal, a Modal features are off notice links there.
With no modals yet, the screen shows No modals yet with its own Add Modal button.
Modals on this site lists every aegis/modal block in posts, pages, templates, template parts, and synced patterns: Name and author, Location with click-to-copy ID and Shortcode, Trigger, Status, Last Modified, and at the end of the row a switch to enable or disable it, Edit, and Delete. Click Name, Status, or Last Modified to sort. On narrow screens the table scrolls sideways.
Switching a modal on or off and Delete each show a notice at the top of the screen, green when it worked and red when it failed, including when the change fails.
Status Disabled (grey) means the modal’s switch is off (the modal is not rendered on the front end). Trigger off (amber) means the matching Blocks flag is disabled (for example an exit-intent modal while Exit Intent is off). Otherwise status is the host post status: Published in green, any other status (Draft, Pending, …) in amber.
Location shows the host title and type, then:
ID — modalId (HTML id of the dialog). Click the row to copy.
Shortcode — . Click to copy. Place it in any post, page, or shortcode-capable widget to render the same Modal (trigger + dialog) without publishing the host page.
Do not put the shortcode on the same host that already contains the Modal block — that duplicates the dialog id.
Delete removes that Modal block from the host. If the host is an otherwise empty draft page, the draft is moved to Trash. Enable/Disable does not change the host post status.
Creating Modals
Create a modal from a starter.
Open Aegis → Modals.
Click Add Modal, then pick Blank Modal or a pattern in the dialog. Aegis creates a draft page and opens the editor. Blank Modal turns on Button Trigger if it was off.
Edit the Modal block. Either publish the host page / move the block into a template, or leave the host as a draft and place elsewhere.
Enable extra triggers and layouts at Aegis → Blocks → Modal if you add them later. Creating a starter already turns on the extras that pattern needs (Animations for contact/video/newsletter/cookie, Off-Canvas for cookie consent, and Exit Intent / Time Delay / Show Once when Aegis Pro is licensed).
Newsletter (exit intent) and Cookie Consent (time delay) are Pro triggers; without Pro their cards carry a Pro label. The draft is still created without Pro; enable the matching flag after installing Pro.
The Video starter needs the Aegis Video add-on. Without it the card stays visible but greyed out, marked Needs Aegis Video, and cannot be picked.
Choosing a Type, Trigger, and Animation
In the block editor, the Modal block’s Modal Type, Trigger Type, and Animation settings are pictures rather than drop-downs. Each option has a small diagram: a popup in the middle of the page, an off-canvas panel at the side, a bottom sheet, or a full-screen layout; a button, text link, icon, image, scroll position, exit intent, or timer for the trigger; and the fade, slide, or zoom for the animation. Only the types and triggers turned on at Aegis → Blocks → Modal are offered.
Shortcode
Copied!
HTML
The id is the Modal block’s modalId. The shortcode loads that block from its host (including drafts) and runs the same render.php output. Disabled modals and a disabled Modal block produce no front-end markup (admins see a short error). Recursive shortcodes for the same id are ignored.
Scanning
Instances are cached for one hour and flushed when posts are saved, trashed, or deleted. The scan looks for <!-- wp:aegis/modal in post content (limit 500 matching posts).
Plugins are grouped by category in the sidebar (alphabetical). Each plugin’s enable toggle, extras, and block-condition switches sit in that category as a flat settings list (same row layout as Blocks). Stack headers and toggle rows use brand SVG marks when available (WooCommerce, Easy Digital Downloads, AffiliateWP, ACF, bbPress, Fluent Forms/Booking, Rank Math, Sensei LMS); otherwise dashicons. Stacked plugins in a category are listed alphabetically. Integrations are off by default on new installs, and a toggle can only be turned on when that plugin is installed and active. A one-time migration writes leftover stored ons to off when that plugin is not active, so installing the plugin later does not turn the integration on by itself. Admin notices remind you when a supported plugin is installed but its integration is disabled.
Enable All on a category turns on installed plugins first, then their extras. Disable All turns the plugins off and locks extras again. Extras stay disabled unless the plugin is active and the parent integration is on. Author Schema under Co-Authors Plus is skipped by Enable All (so Yoast/Rank Math author markup is not duplicated by accident). Disable All still turns it off.
Service credentials (BunnyCDN, Google Maps, analytics providers) live at Aegis → Connectors. See Connectors.
Integration Sections
Aegis → Integrations.
Section
Anchor
Plugins
Community
#community
bbPress
Content
#content
Co-Authors Plus
CRM
#crm
FluentCRM, WP Fusion
Developer
#developer
Advanced Custom Fields, Code Block Pro, Meta Box, Syntax Highlighting
E-commerce
#ecommerce
AffiliateWP, Easy Digital Downloads, WooCommerce
Forms
#forms
Fluent Booking, Fluent Forms, Gravity Forms, Ninja Forms
LMS
#lms
LearnDash, LifterLMS, Sensei LMS
SEO
#seo
All in One SEO, Rank Math, SEOPress, Yoast SEO
Plugin hashes (#woocommerce, #wp-fusion, and so on) still open the matching category.
Note
TI WooCommerce Wishlist. Not listed as an integration toggle. The theme provides the Wishlist FSE template (page-wishlist.html); the companion plugin registers the template-page-wishlist block pattern when WooCommerce and TI WooCommerce Wishlist are active. See Pattern dependency matrix and Theme WooCommerce Integration.
Note
WooCommerce block patterns. Registered from patterns/woocommerce/ by CommercePatternRegistrar when WooCommerce is active — not from theme patterns/. See Plugin Patterns.
FluentCRM is on CRM with WP Fusion (#fluent-crm still opens that category). The FluentCRM toggle has no extras of its own. With Aegis Pro, it gates core/video FluentCRM automation (funnels, tags, and lists on play / milestone / complete). The shared video tracker loads from the FluentCRM module when that extra is on a rendered video — LearnDash does not need to be enabled. Events run only for logged-in FluentCRM contacts. Funnel, tag, and list IDs are read from the saved block on a published post (not the request body) and started with FluentCRM FunnelProcessor. The extra must live in post content so REST can find it — template-part-only videos are skipped. Contacts already in a funnel are skipped unless that funnel allows run_multiple. See Video Stack — LMS and FluentCRM.
WP Fusion (or WP Fusion Lite) is the other CRM toggle. Detection is WPFusion::is_plugin_active() (WP_FUSION_VERSION or wpf_has_tag()). There is no framework CSS. CRM Tags and CRM Lists extras sit under that toggle. Tags add has / has all / has not rules (has-all uses catalog tokens). Lists add has / has not list rules and check CRM list membership (get_contact_lists(), FluentCRM lists, Mailchimp default audience) rather than treating lists as tags. Either extra also enables Is logged in (CRM) / Smart Logic WP Fusion Logged-in (CRM) (wpf_is_user_logged_in(), including auto-login). Pickers use available_tags / available_lists (Mailchimp falls back to mc_lists), not wpf_get_tags(). A stored ID missing from the catalog still appears as (saved). An empty Has value matches nobody; an empty Does not have value matches everyone, same as an empty user role. See Query Conditions — WP Fusion and Smart Logic.
Easy Digital Downloads is on E-commerce (#easy-digital-downloads still opens that category). Detection is EasyDigitalDownloads::is_plugin_active() (Easy_Digital_Downloads, EDD(), or EDD_VERSION) for free and Pro. Turning the integration on loads framework download/checkout/cart CSS (plugins/edd/edd.css) when edd-blocks / wp-block-edd / edd-submit / edd_download / edd-alert markup is in the page, and enables snippet/hook-pattern locations (aegis_before_edd_download / aegis_after_edd_download on edd_before_download_content / edd_after_download_content). Installed-but-inactive uses easy-digital-downloads/easy-digital-downloads.php or easy-digital-downloads-pro/easy-digital-downloads.php. See Query Conditions — Easy Digital Downloads and Theme Plugin Integrations.
Easy Digital Downloads extras under E-commerce are Cart Conditions, Customer History, and Download Context. Download type is EDD default / bundle, not WordPress post type. A leftover saved value of download is treated as default; unknown saved types appear as (saved).
WooCommerce is on E-commerce (#woocommerce still opens that category). Detection is WooCommerce::is_plugin_active() (WooCommerce, WC(), or WC_VERSION) for free and Pro. Turning the integration on loads framework shop/cart/checkout CSS (plugins/woocommerce/woocommerce.css) when woocommerce / wc-block / wp-block-woocommerce markup is in the page, breadcrumb CSS (plugins/woocommerce/woocommerce-breadcrumbs.css) when woocommerce-breadcrumb / wc-block-breadcrumbs / wp-block-woocommerce-breadcrumbs markup is in the page, wraps classic and Store Breadcrumb delimiters in .aegis-breadcrumb-separator, unregisters WooCommerce plugin woocommerce/ patterns unless WooCommerce Patterns is on, enables snippet/hook-pattern locations (aegis_before_woocommerce_checkout / aegis_after_woocommerce_checkout, aegis_before_woocommerce_cart / aegis_after_woocommerce_cart), and loads multi-step checkout assets on the multi-step checkout template. Installed-but-inactive uses woocommerce/woocommerce.php. Query Loop product filters also need Blocks → Query Loop → Product Query. See Query Conditions — WooCommerce, Query Loop (core/query), and Theme Plugin Integrations.
WooCommerce extras under E-commerce are Cart Conditions, Customer History, and Product Context (Pro inspector; not Smart Logic). Pattern-control extras are WooCommerce Patterns (keep WooCommerce’s own inserter patterns) and WooCommerce Templates (hide WooCommerce plugin block templates). Aegis commerce patterns still register from patterns/woocommerce/ whenever WooCommerce is active. Extras stay disabled unless that plugin is installed and active and the parent integration toggle is on.
AffiliateWP is on E-commerce (#affiliate-wp still opens that category). Detection is AffiliateWP::is_plugin_active() (Affiliate_WP, affiliate_wp(), or AFFILIATEWP_VERSION). Turning the integration on loads framework Affiliate Area and login/register form CSS (plugins/affiliate-wp.css) when affwp-affiliate-dashboard / affwp-form / affwp-notice / affwp-register-form / affwp-login-form markup is in the page, skips AffiliateWP’s bundled affwp-forms stylesheet on the frontend (affwp_enqueue_style_affwp-forms plus a dequeue on wp_enqueue_scripts / wp_print_styles; admin screens keep affwp-forms), and enables snippet/hook-pattern locations (aegis_before_affwp_dashboard / aegis_after_affwp_dashboard on affwp_affiliate_dashboard_before_content / affwp_affiliate_dashboard_after_content). Installed-but-inactive uses affiliate-wp/affiliate-wp.php. AffiliateWP extras under E-commerce are Referral Visit, Affiliate Account, and Earnings. See Query Conditions — AffiliateWP and Theme Plugin Integrations.
LearnDash is on LMS (#lms opens that category). Detection is LearnDash::is_plugin_active() (LEARNDASH_VERSION, class_exists( 'SFWD_LMS' ), LEARNDASH_LMS_PLUGIN_DIR, or learndash_init()). Turning the integration on loads framework course, lesson, topic, quiz, and profile styling (plugins/learndash.css) when learndash-wrapper / learndash / ld-course / ld-lesson / aegis-learndash markup is in the page, maps the theme custom logo to Focus Mode (learndash_focus_header_logo_url and learndash_focus_mode_logo), sets Focus Mode logo alt text (learndash_focus_header_logo_alt) from the site name, and adds aegis-learndash-page body class on LearnDash post types and archives. Installed-but-inactive uses sfwd-lms/sfwd_lms.php or learndash/sfwd_lms.php. Snippet/hook-pattern locations are aegis_before_learndash_course / aegis_after_learndash_course, aegis_before_learndash_lesson / aegis_after_learndash_lesson, aegis_before_learndash_topic / aegis_after_learndash_topic, aegis_before_learndash_quiz / aegis_after_learndash_quiz, and aegis_learndash_focus_header / aegis_learndash_focus_footer. Extras under LMS are Enrollment (ld_enrollment), Completion (ld_completion), Progress % (ld_progress), Quiz Result (ld_quiz), and Group Membership (ld_group) (Pro inspector; not Smart Logic), and the pattern-control extra LearnDash Patterns (learndash_keep_patterns), which unregisters LearnDash plugin patterns from the editor at init priority 11 when enabled in Pro. With Pro, core/video also supports LearnDash video progression (auto-complete lessons/topics, custom watch threshold, and force-watch blocking). See Query Conditions — LearnDash, Pattern Control, and Theme Plugin Integrations.
LifterLMS is on LMS (#lms opens that category). Detection is LifterLMS::is_plugin_active() (LifterLMS, LLMS(), LLMS_VERSION, or LLMS_PLUGIN_FILE). Turning the integration on loads framework course, lesson, and syllabus styling (plugins/lifterlms.css) adapting to theme design tokens and dark mode, registers theme support (lifterlms, lifterlms-sidebars), suppresses default sidebars (llms_get_theme_default_sidebar), and adds aegis-lifterlms-page body class on LifterLMS pages and archives. Installed-but-inactive uses lifterlms/lifterlms.php. Snippet/hook-pattern locations are aegis_before_llms_course / aegis_after_llms_course and aegis_before_llms_lesson / aegis_after_llms_lesson (bridged on lifterlms_before_main_content and lifterlms_after_main_content). Extras under LMS are Enrollment (llms_enrollment), Completion (llms_completion), Course Progress % (llms_progress), and Membership (llms_membership) (Pro inspector; not Smart Logic), and the pattern-control extra LifterLMS Patterns (lifterlms_keep_patterns), which unregisters LifterLMS plugin patterns from the editor at init priority 11 when enabled in Pro. With Pro, core/video also supports LifterLMS video progression (auto-complete lessons, custom watch threshold, and force-watch blocking). See Query Conditions — LifterLMS, Pattern Control, and Theme Plugin Integrations.
Sensei LMS is on LMS (#lms opens that category). Detection is SenseiLMS::is_plugin_active() (Sensei_Main, Sensei(), Sensei, SENSEI_VERSION, or SENSEI_PLUGIN_FILE). Turning the integration on loads framework course, lesson, quiz, and progress styling (plugins/sensei-lms.css) adapting to theme design tokens and dark mode, registers theme support (sensei, sensei-lms), disables default plugin styles (sensei_disable_styles), and adds aegis-sensei-page body class on Sensei pages and archives. Installed-but-inactive uses sensei-lms/sensei-lms.php, sensei/sensei.php, or woothemes-sensei/woothemes-sensei.php. Snippet/hook-pattern locations are aegis_before_sensei_course / aegis_after_sensei_course, aegis_before_sensei_lesson / aegis_after_sensei_lesson, and aegis_before_sensei_quiz / aegis_after_sensei_quiz (bridged on sensei_before_main_content and sensei_after_main_content). Extras under LMS are Enrollment (sensei_enrollment), Completion (sensei_completion), Course Progress % (sensei_progress), and Quiz Grade (sensei_quiz) (Pro inspector; not Smart Logic), and the pattern-control extra Sensei LMS Patterns (sensei_keep_patterns), which unregisters Sensei LMS plugin patterns from the editor at init priority 11 when enabled in Pro. See Query Conditions — Sensei LMS, Pattern Control, and Theme Plugin Integrations.
The same pattern applies to LearnDash, LifterLMS, Sensei LMS, Fluent Forms, Fluent Booking, Advanced Custom Fields, and Meta Box: each plugin is a stacked subheading with its enable toggle and extras underneath. Pattern-control extras (WooCommerce Patterns / Templates, LearnDash Patterns, Co-Authors Plus Patterns, and so on) stay disabled unless that plugin is active and the parent integration is on. Saving with the parent off clears pattern-control extras and block-condition extras.
Fluent Forms is on Forms (#forms opens that category). Detection is FluentForms::is_plugin_active() (FLUENTFORM, FLUENTFORM_VERSION, or FluentForm\App\Modules\Form\Form) for free and Pro. Turning the integration on loads framework form element and button styling (plugins/fluent-forms.css) when fluentform / ff_form / fluent_form / fluent-form / ff-form markup is in the page and deactivates default public form styles via fluentform_load_default_public. Installed-but-inactive uses fluentform/fluentform.php or fluentformpro/fluentformpro.php. Snippet/hook-pattern locations are aegis_before_fluentform (on fluentform/before_form_render, priority 5) and aegis_after_fluentform (on fluentform/after_form_render, priority 99). Extras under Forms are Has Submitted (ff_submitted), Submission Count (ff_count), and Field Value (ff_field) (Pro inspector; not Smart Logic), and the pattern-control extra Fluent Forms Patterns (fluentforms_keep_patterns), which unregisters Fluent Forms plugin patterns from the editor at init priority 11 when enabled. See Query Conditions — Fluent Forms, Pattern Control, and Theme Plugin Integrations.
Fluent Booking is on Forms (#forms opens that category). Detection is FluentBooking::is_plugin_active() (FLUENT_BOOKING_VERSION or FluentBooking\App\App) for free and Pro. Turning the integration on loads framework calendar, scheduling, and booking UI CSS (plugins/fluentbooking.css) when fluent-booking / fcal_ / fcal- / fluentbooking markup is in the page. Installed-but-inactive uses fluent-booking/fluent-booking.php or fluent-booking-pro/fluent-booking-pro.php. Extras under Forms are Has Booking, Upcoming Count, Past Count, and Booking Status (Pro inspector; not Smart Logic), and the pattern-control extra Fluent Booking Patterns (fluentbooking_keep_patterns), which unregisters Fluent Booking plugin patterns from the editor at init priority 11 when enabled. See Query Conditions — Fluent Booking, Pattern Control, and Theme Plugin Integrations.
Gravity Forms is on Forms (#forms opens that category). Detection is GravityForms::is_plugin_active() (GFForms, GFAPI, GF_MIN_WP_VERSION, or gravity_form()). Turning the integration on loads framework form element, input, and button styling (plugins/gravity-forms.css) when gform_wrapper / gravity-theme / gform / gform_body / gform-body / gfield markup is in the page and deactivates default theme CSS via gform_disable_form_theme_css. Installed-but-inactive uses gravityforms/gravityforms.php. Snippet/hook-pattern locations are aegis_before_gform and aegis_after_gform (bridged on gform_get_form_filter). See Theme Plugin Integrations.
Ninja Forms is on Forms (#forms opens that category). Detection is NinjaForms::is_plugin_active() (Ninja_Forms, function_exists( 'Ninja_Forms' ), defined( 'NF_PLUGIN_VERSION' ), or defined( 'NF_VERSION' )). Turning the integration on loads framework form element, input, and button styling (plugins/ninja-forms.css) when ninja-forms / ninja_forms / ninja_form / nf-form / nf-field / nf-form-cont / nf-form-content markup is in the page and deactivates default and opinionated plugin styles (nf-display, ninja-forms-display, ninja-forms-display-opinions, nf-display-opinions, nf-layout-front-end). Installed-but-inactive uses ninja-forms/ninja-forms.php. Snippet/hook-pattern locations are aegis_before_nf_form (on ninja_forms_before_form_display, priority 5) and aegis_after_nf_form (on ninja_forms_after_form_display, priority 99). See Theme Plugin Integrations.
Co-Authors Plus extras on Content are Author Schema (free), Social Links, Role Badges, and Co-Authors Plus Patterns (Pro). The toggle stays off until co-authors-plus/co-authors-plus.php is active. Turning the integration on replaces core/post-author, core/post-author-name, and core/post-author-biography for multi-author posts (guest-author URLs and avatars), loads plugin CSS, and enables snippet locations (aegis_before_post_author / aegis_after_post_author) on both core/post-author and co-authors/block. Author Schema (cap_author_schema) is off by default, parent-gated, and skipped by Enable All. When on, it prints JSON-LD Person markup on singular Co-Authors Plus post types (filter coauthors_supported_post_types, default post and page). Leave it off if Yoast, Rank Math, or another SEO plugin already outputs author schema. Pro adds sameAs URLs to that JSON-LD when Social Links is on. Social Links and Role Badges apply to core/post-author and co-authors/name, for guest authors and WordPress users. Saving with the parent off clears those extras. Pattern removal unregisters Co-Authors Plus plugin patterns only — not aegis/co-authors-*. The theme framework copy does not load while the Aegis plugin is active and does not emit author schema.
bbPress on Community (#community opens that category) has no block-condition extras. The toggle stays off until bbpress/bbpress.php is active. Turning the integration on loads framework forum styles (plugins/bbpress.css — circular avatars, content typography, theme form/editor fields, grid topic rows, tokenized posts, My Account–style member layout) and dequeues bbPress bbp-default / bbp-default-rtl, wraps forum views in the theme Page template via locate_block_template( $template, 'page', array( 'page.php' ) ) (WordPress resolves templates/page.html; the PHP fallback is kept), and enables snippet/hook-pattern locations (aegis_before_bbpress_forum / aegis_after_bbpress_forum, aegis_before_bbpress_topic / aegis_after_bbpress_topic).
Code Block Pro is on Developer (#code-block-pro still opens that category). Detection is CodeBlockPro::is_plugin_active() (CBPRouter, or the kevinbatdorf/code-block-pro block after init) — the plugin does not define CODE_BLOCK_PRO_VERSION. There are no extras. Turning the integration on loads the framework overlay (plugins/code-block-pro.css: theme radius, block gap padding, monospace) when wp-block-kevinbatdorf-code-block-pro is in the markup. Installed-but-inactive uses code-block-pro/code-block-pro.php. See Theme Plugin Integrations.
Syntax Highlighting Code Block is on Developer (#syntax-highlighting still opens that category). Detection is SyntaxHighlighting::is_plugin_active() (Syntax_Highlighting_Code_Block\PLUGIN_VERSION or boot()). There are no extras. Turning the integration on loads the framework overlay (plugins/syntax-highlighting-code-block.css: inherit theme code colors, radius, padding, line-number chrome, and Highlight.js line fade-in) when hljs / shcb- markup is in the page — not on a plain wp-block-code wrapper. The plugin’s Customizer theme picker stays available unless settings.custom.highlightJs is set in theme.json. Installed-but-inactive uses syntax-highlighting-code-block/syntax-highlighting-code-block.php. See Theme Plugin Integrations.
ACF is on Developer (#advanced-custom-fields still opens that category). Detection is ACF::is_plugin_active() (class_exists( 'ACF' ) or get_field()), which also covers Secure Custom Fields on WordPress.org (secure-custom-fields.php, plus a legacy acf.php shim). There is no framework CSS. The ACF Field extra sits under that toggle and shows or hides a block from a field value (Pro inspector and hook-pattern conditions). Query Loop field pickers also need Blocks → Query Loop → Field Picker. Featured-image ACF Image Field stays on Conditionals → Image Source and now requires this parent toggle as well as the plugin. Pro video Dynamic Source offers ACF only when this integration is on. Live visibility uses the free Evaluator (get_the_ID(), then the queried object; booleans and arrays are normalized). See Query Conditions, Query Loop (core/query), and Video Stack.
Meta Box is on Developer (#meta-box still opens that category). Detection is MetaBox::is_plugin_active() (RWMB_Loader or rwmb_meta()), including Meta Box AIO. The Meta Box Field extra sits under that toggle (Pro inspector and hook-pattern conditions). Query Loop pickers need Blocks → Query Loop → Field Picker. Featured-image Meta Box Image Field stays on Conditionals → Image Source and requires this parent. Pro video Dynamic Source and the theme aegis/metabox binding source follow the same toggle. Live visibility uses the Evaluator on the loop post, then the queried object, with booleans/arrays normalized. Turning the integration on also loads framework form CSS (plugins/meta-box.css) and injects the theme colour palette into Meta Box colour pickers. Installed-but-inactive uses meta-box/meta-box.php or meta-box-aio/meta-box-aio.php. See Theme Plugin Integrations.
SEO Plugins are on SEO (#seo opens that category), covering Rank Math, Yoast SEO, All in One SEO, and SEOPress. Stack headers use distinct descriptions (schema delegation target, breadcrumb styling where applicable, Pro video sitemaps). Shared capabilities:
Schema delegation: Suppresses built-in FAQ, Event, Local Business, and Video JSON-LD markup on Aegis blocks so the active SEO plugin serves as the canonical schema provider without duplicate markup.
Video Sitemap (Pro): Delegates video indexing to the active SEO plugin’s sitemap engine via Video\Seo\VideoSitemapManager when seo_video_sitemap is enabled.
Breadcrumbs: Aegis natively supports and styles the WordPress Core Breadcrumbs block (core/breadcrumbs) using theme design system tokens. Rank Math’s .rank-math-breadcrumb, SEOPress’s .seopress-breadcrumbs, and Yoast’s #breadcrumbs / .yoast-breadcrumbs trails share the same stylesheet when present; separators use each plugin’s own markup (Rank Math .separator, SEOPress .breadcrumb-sep; Yoast keeps nested-span text separators and .breadcrumb_last — theme CSS does not force flex layout on Yoast wrappers) so configured separator characters are not overridden. The active SEO plugin outputs its own BreadcrumbList schema graph in JSON-LD.
Fallback Description: Pro suppresses its fallback meta description when an SEO plugin is detected.
Detection methods:
All in One SEO: AllInOneSEO::is_plugin_active() (AIOSEO_VERSION, class_exists( 'AIOSEO\Plugin\AIOSEO' ), function_exists( 'aioseo' ), or defined( 'AIOSEO_FILE' )). Installed-but-inactive uses all-in-one-seo-pack/all_in_one_seo_pack.php or all-in-one-seo-pack-pro/all_in_one_seo_pack.php. Schema filtered via Seo\Adapters\AioseoAdapter (aioseo_schema_output).
Rank Math: RankMath::is_plugin_active() (RANK_MATH_VERSION, class_exists( 'RankMath' ), function_exists( 'rank_math' ), defined( 'RANK_MATH_FILE' ), defined( 'RANK_MATH_PRO_VERSION' ), or defined( 'RANK_MATH_PRO_FILE' )). Installed-but-inactive uses seo-by-rank-math/rank-math.php or seo-by-rank-math-pro/rank-math-pro.php. Schema filtered via Seo\Adapters\RankMathAdapter (rank_math/json_ld → aegis_rank_math_json_ld). Pro video sitemap uses Video\Seo\RankMathVideoSitemap.
Yoast SEO: Yoast::is_plugin_active() (WPSEO_VERSION, WPSEO_FILE, WPSEO_Options, YoastSEO(), yoast_breadcrumb(), Premium WPSEO_PREMIUM_FILE / WPSEO_Premium, or Video SEO WPSEO_VIDEO_FILE / WPSEO_Video_Sitemap); Premium and Video SEO also expose Yoast::is_premium_active() / Yoast::is_video_seo_active(). Installed-but-inactive uses wordpress-seo/wp-seo.php or wordpress-seo-premium/wp-seo-premium.php. Schema filtered via Seo\Adapters\YoastAdapter (wpseo_schema_graph → aegis_yoast_schema_graph). Theme styles #breadcrumbs / .yoast-breadcrumbs (current crumb .breadcrumb_last; no forced flex). Pro video sitemap uses Video\Seo\YoastVideoSitemap (Video SEO–gated wpseo_video_index_content / duration-only wpseo_video_item; fill-empty VideoObject enrichment on wpseo_schema_graph at priority 25, appending nodes for additional videos).
SEOPress: SEOPress::is_plugin_active() (SEOPRESS_VERSION, SEOPRESS_PLUGIN_DIR_PATH, SEOPRESS_PRO_VERSION, SEOPRESS_PRO_PLUGIN_DIR_PATH, or function_exists( 'seopress_get_service' )); Pro-only features also check SEOPress::is_pro_active() (SEOPRESS_PRO_VERSION, SEOPRESS_PRO_PLUGIN_DIR_PATH, or seopress_pro_get_service()). Installed-but-inactive uses wp-seopress/seopress.php or wp-seopress-pro/seopress-pro.php. Schema filtered via Seo\Adapters\SeopressAdapter named methods on SEOPress automatic schema hooks (seopress_schemas_auto_faq_json, seopress_schemas_auto_event_json, seopress_schemas_auto_lb_json, seopress_schemas_auto_video_json → aegis_seopress_schemas_auto_schema with $typefaq / event / local_business / video). Pro video sitemap uses Video\Seo\SeopressVideoSitemap (seopress_pro_video_sitemap_builder_content when Pro is active; automatic Video schema enrichment on seopress_schemas_auto_video_json at priority 25).
When an SEO plugin integration is enabled, you can delegate FAQ, Event, Local Business, and Video schema to that plugin instead of built-in block markup. See SEO Schema Delegation.
Let your SEO plugin own the schema.
Video sitemap delegation requires Aegis Pro.
Pattern Control (Pro)
Several integrations include Pro sub-toggles to hide third-party block patterns (WooCommerce, LearnDash, LifterLMS, Sensei, Fluent Forms, Fluent Booking, Co-Authors Plus). Pro Pattern Control reads the WooCommerce/LMS/forms options; Co-Authors Plus Patterns are applied from Pro CoAuthorsPlus. Tools → Reset defaults on Integrations clears aegis_integrations and aegis_pattern_control. Tools → Reset defaults on Connectors only resets Connectors-owned toggles (BunnyCDN, Maps), their credentials, and aegis_analytics — it does not wipe other Integrations toggles or pattern control. The global settings export does not include aegis_pattern_control.
Pattern Control (Aegis Pro).
Framework Styling
When an integration is enabled, the Aegis framework loads compatibility CSS. See Theme Plugin Integrations for styling behavior.
Next Steps
Connectors — BunnyCDN, Google Maps, and analytics credentials
Sidebar and section headers use brand SVG marks (BunnyCDN, Google Maps, GA4, GTM, Clarity, Plausible, Fathom, Matomo, Meta Pixel) with the same currentColor treatment as Integrations; Privacy keeps a dashicon.
Sections
Aegis → Connectors and its sections.
Section
Anchor
Purpose
BunnyCDN
#bunnycdn
Stream hosting, CDN credentials, and Pro video extras. Appears when the Aegis Video add-on is active.
Google Maps
#maps
Browser and server API keys for the Map block
Google Analytics
#ga4
GA4 measurement ID, IP anonymization
Tag Manager
#gtm
GTM container ID, Data Layer (Pro)
Clarity
#clarity
Project ID ([a-z0-9]{6,16}); official async snippet in head
Plausible
#plausible
Domain (+ optional script URL); per-host URL strip; defer snippet in head
Fathom
#fathom
Site ID (+ optional script URL); defer snippet in head
Matomo
#matomo
Instance URL (http(s) / // / bare host), Site ID, Privacy Mode; head bootstrap
Meta Pixel
#meta-pixel
Pixel ID (numeric), WooCommerce events (Pro); head base code
Option keys are unchanged: aegis_integrations (toggles), aegis_bunnycdn, aegis_google_maps, aegis_analytics.
Export and import on this screen use the global settings bundle (including analytics). Tools → Reset defaults uses the connectors group: it turns off BunnyCDN / Google Maps toggles (and BunnyCDN extras), clears aegis_bunnycdn and aegis_google_maps credentials, clears aegis_analytics, and removes locally proxied analytics scripts. Other Integrations dashboard toggles and aegis_pattern_control are left unchanged.
BunnyCDN
The BunnyCDN section is drawn by the Aegis Video add-on (hooks aegis_connectors_nav_items and aegis_connectors_sections). The settings are still stored by this plugin in the options below, where Aegis Pro reads them. Without Aegis Video the section is not shown, the BunnyCDN keys read as off, and the screen opens on the first remaining connector. The parent BunnyCDN toggle needs only Aegis Video; API fields and Pro extras require Aegis Pro. Helper: Integrations\BunnyCDN (is_plugin_active(), is_enabled(), is_extra_enabled()). Theme Stream player CSS loads when the parent toggle is on.
BunnyCDN settings.
Pro extras (parent-gated)
Extra
Key
Behavior
Stream Library
bunny_cdn_stream_library
Browse/select Stream library videos in the block editor
Direct Upload
bunny_cdn_direct_upload
Upload to Stream from the editor (proxied through WordPress)
Connection test against api.bunny.net; Stream REST fallback AccessKey
Pull Zone Name
Bunny pull-zone slug for *.b-cdn.net playback
CDN Hostname
Optional custom CDN host (preferred over pull-zone slug when set)
Token Authentication Key
Pull-zone URL token key for private HLS signing
Stream Library ID
Default library for editor + API lock
Stream API Key
Library AccessKey for video.bunnycdn.com (preferred over Account key)
Webhook Signing Secret
Library Read-Only API key for X-BunnyStream-Signature HMAC
Legacy Storage Zone fields have no UI; keys remain in sanitize for backward compatibility.
Saving and testing credentials
Save API Settings and Test Connection stay disabled until the Account API Key field has a value (including a masked stored key). Both actions require Aegis Pro; they do not require the parent BunnyCDN toggle to be on first — you can save and verify keys, then enable the connector. Without Pro, the API panel shows a lock notice instead of the action buttons.
Security and Pro REST
Pro routes under aegis-pro/v1/bunny/* are editor-only (edit_posts; uploads also need upload_files). They are not public frontend APIs.
Direct upload is proxied through WordPress so AccessKeys never reach the browser.
When a library ID is configured, API calls for other libraries are refused.
Private HLS requires the Token Authentication Key; unsigned private URLs are blocked on the front end.
Webhooks verify Bunny Stream HMAC (X-BunnyStream-Signature) over the raw body; unsigned requests return 403.
Per-block Auto Transcribe and caption language are stored in aegis_bunny_transcribe_intent and applied when encoding finishes (status 3).
Snippet hooks aegis_before_video_block / aegis_after_video_block fire when the parent BunnyCDN toggle is on.
Migrations
Legacy Pro option aegis_pro_bunnycdn maps into aegis_bunnycdn (aegis_bunnycdn_migrated_v1). The old token_auth_key becomes Token Authentication Key, not Stream API Key.
aegis_bunnycdn_token_key_v2 backfills an empty token field from stream_api_key when needed. If Stream API calls fail after that, set Stream API Key to the library AccessKey and keep the pull-zone token only in Token Authentication Key.
Maps
The Google Maps panel always loads on Connectors so you can enable the provider and save keys.
Editor geocode REST + Test Connection (IP restriction)
Save API Settings enables when either key has a value (including a fully masked stored key); Test Connection requires the Server API Key. Save/Test do not require the Google Maps toggle to be on first — enable the connector separately with Save Settings. Partial saves keep unchanged masked secrets. Frontend Google playback still needs the toggle on plus a browser key. OpenStreetMap is always available as an explicit Map block provider. Automatic OSM fallback when Google has no key is the OpenStreetMap Fallback extra at Aegis → Blocks → Map.
Maps security
Control
Behavior
Key roles
Browser: HTTP referrer; Maps JS + Static Maps (+ Directions API only if you use Pro Directions). Server: IP; Geocoding only. Identical browser/server keys are rejected on save.
Editor geocode
GET aegis/v1/map/geocode — edit_posts only, address max 200 chars, 20 requests/min per user. Server key never localized to the browser.
Directions
Free-text origins/destinations resolve server-side (cached) to lat,lng before the public map loads — no browser Geocoder.
Store Locator
Matches existing markers by title or accepts lat,lng; no public Geocoder.
Dynamic markers (Pro)
Public CPTs only; safe meta keys; REST rate-limited for editors.
Maps JS libraries
Page-level union so heatmap/drawing siblings load the libraries they need.
Legacy single api_key values and the old Pro Fieldify aegis[googleMaps] field migrate once into browser_api_key (aegis_google_maps_migrated_v1).
Analytics
Each provider has its own Connectors tab. Nothing is sent until you enable a provider and save credentials. Shared consent settings are on Privacy. Video performance reports stay on Aegis → Analytics (Pro, aegis-video-analytics) and are separate from these measurement IDs.
Saving analytics settings
Footer Save Settings on Connectors posts provider fields via aegis_save_analytics into aegis_analytics. Fields missing from the request (for example Meta Pixel ID when Pro is inactive, or disabled Pro toggles) keep their stored values. Invalid GA4 (G-…), GTM (GTM-…), Clarity ([a-z0-9]{6,16}), Plausible domain/script URL, Fathom Site ID/script URL ([A-Z0-9]{5,10}), Matomo URL/Site ID, or Meta Pixel ID (\d{5,20}) values are ignored and surfaced as save warnings. For Clarity, Plausible, Fathom, Matomo, and Meta Pixel, a typo keeps a previously valid credential; if the stored value is also invalid it is cleared. Enabling GA4, GTM, Clarity, Plausible, Fathom, Matomo, or Meta Pixel without usable credentials (normalized where applicable), enabling both GA4 and GTM with IDs set, or Privacy misconfigurations (Consent Mode without GA4/GTM, Require Consent without Complianz Integration, Complianz Integration and/or Require Consent without the plugin, Local Script Loading without GA4/GTM) also surfaces warnings.
Privacy and Consent Mode
All of these live on the Privacy tab (#privacy), not on the GA4 or Tag Manager tabs:
Privacy options for analytics.
Setting
Behavior
Consent Mode v2 (Pro)
Emits denied Consent Mode defaults (wait_for_update: 500) before gtag/GTM when GA4 and/or GTM are enabled (stored as ga4_consent_mode). With Complianz Integration on, Aegis listens for cmplz_fire_categories / cmplz_revoke (detail as a category array or { categories }). Other CMPs can dispatch aegis_analytics_consent with { analytics, marketing } or { categories: ['statistics','marketing'] }.
Require Consent
Marks scripts as text/plain with Complianz data attributes so Complianz can unblock them. Needs Complianz Integration and the Complianz plugin (cannot enable when Complianz is missing; can still turn off if previously enabled). Skips GTM and Meta Pixel <noscript> fallbacks (they cannot be consent-gated).
Respect DNT / GPC
Skips all providers when the request has DNT: 1 or Sec-GPC: 1 (gdpr_respect_dnt).
Complianz Integration
Adds Complianz script attributes and drives Consent Mode updates when that option is on.
Local Script Loading
Proxies GA4/GTM scripts through uploads when supported (other providers are not proxied). The GTM head loader always appends the container id to the script URL (CDN or local).
Debug Mode (Pro)
Loads tracking for admins (bypasses DNT/GPC for that admin) and shows diagnostics. Console lists valid providers plus Consent Mode, Require Consent, Complianz, DNT/GPC, and local scripts.
Saving Privacy misconfigurations (Consent Mode without GA4/GTM, Require Consent without Complianz Integration, Complianz Integration and/or Require Consent without the plugin, Local Script Loading without GA4/GTM) surfaces warnings.
Admin users do not load tracking scripts unless Debug Mode (Pro) is on.
Tag Manager injection
With Tag Manager enabled and a valid GTM-… ID, Aegis prints the official head bootstrap (Consent Mode / Data Layer first when configured), then the container loader. Locally proxied gtm.js has no ID in the file URL; the loader adds id= at runtime. The noscript iframe uses ns.html?id=… on wp_body_open (footer fallback if needed).
Clarity injection
With Clarity enabled and a normalized Project ID ([a-z0-9]{6,16}), Aegis prints the official async snippet in wp_head and DNS-prefetches clarity.ms. Invalid stored IDs never reach the page. Complianz/Require Consent uses data-service="clarity".
Plausible injection
With Plausible enabled and a normalized domain, Aegis prints the official defer snippet in wp_head. Domain normalization strips scheme/www./paths on each comma-separated host. DNS prefetch uses plausible.io or the host of a custom script URL. Invalid stored domains never reach the page; an invalid custom URL falls back to the cloud script until corrected. Use Custom Script URL for self-hosted or first-party proxy setups (Local Script Loading does not proxy Plausible). Complianz/Require Consent uses data-service="plausible".
Fathom injection
With Fathom enabled and a normalized Site ID ([A-Z0-9]{5,10}), Aegis prints the official defer snippet in wp_head. DNS prefetch uses cdn.usefathom.com or the host of a custom script URL. Invalid stored IDs never reach the page; an invalid custom URL falls back to the cloud script until corrected. Complianz/Require Consent uses data-service="fathom". Advanced SPA attributes (data-spa, etc.) are not exposed in Connectors.
Matomo injection
With Matomo enabled and a normalized URL + Site ID, Aegis prints the official tracking bootstrap in wp_head and DNS-prefetches the Matomo host. URLs may be pasted as http(s)://…, //…, or bare host/path (https assumed); non-http schemes are rejected and a host is required. Invalid stored credentials never reach the page. Privacy Mode pushes Matomo setDoNotTrack + disableCookies before pageview. Complianz/Require Consent uses data-service="matomo". The one-time aegis_matomo_privacy_mode_v1 migration renames legacy matomo_anonymize_ip — not dead code.
Meta Pixel injection
With Pro active, Meta Pixel enabled, and a normalized Pixel ID (\d{5,20}), Aegis prints the official base code + PageView in wp_head and DNS-prefetches connect.facebook.net. Invalid stored IDs never reach the page. Optional WooCommerce events fire ViewContent, AddToCart (session after add), InitiateCheckout (cart value/IDs), and Purchase (order value/IDs; deduped via _aegis_meta_pixel_purchase_tracked). Complianz/Require Consent uses data-service="facebook" and data-category="marketing", and skips the noscript image.
Analytics providers are set up in Aegis → Connectors.
Navigate to Aegis → Connectors.
Open the provider tab (Google Analytics, Tag Manager, Clarity, Plausible, Fathom, Matomo, or Meta Pixel).
Enable the provider and enter credentials.
Configure shared consent options on Privacy.
Save your settings.
Note
Analytics is not configured under Appearance → Editor → Styles. All analytics settings live on the plugin Connectors screen.
Supported Providers
Provider
Type
Availability
Google Analytics 4 (GA4)
Full analytics
Free plugin
Google Tag Manager (GTM)
Tag management
Free plugin
Microsoft Clarity
Behavior analytics
Free plugin
Plausible
Privacy-focused
Free plugin
Fathom
Privacy-focused
Free plugin
Matomo
Self-hosted or Matomo Cloud
Free plugin
Meta Pixel
Advertising
Aegis Pro
Consent Mode v2
Privacy compliance (GA4 and/or GTM)
Aegis Pro
GTM Data Layer
Page-context dataLayer push
Aegis Pro
Debug Mode
Admin diagnostics (valid credentials; bypasses DNT/GPC for that admin)
Aegis Pro
Privacy Settings
Shared options on the Connectors Privacy tab (#privacy):
Privacy settings apply to every analytics provider.
Setting
Description
Consent Mode v2 (Pro)
Denied defaults (analytics_storage, ad_storage, ad_user_data, ad_personalization, wait_for_update: 500) before GA4/GTM when those providers load (option key ga4_consent_mode). Complianz Integration updates grants from cmplz_fire_categories / cmplz_revoke (detail as a category array or { categories }); other CMPs can dispatch aegis_analytics_consent.
Require Consent
Hold scripts as text/plain with Complianz data attributes until categories are granted. Requires Complianz Integration and the Complianz plugin (cannot enable when Complianz is missing; can still turn off if previously enabled). Skips GTM/Meta Pixel noscript fallbacks.
Respect DNT / GPC
Skip all tracking when the visitor sends DNT: 1 or Sec-GPC: 1 (option key gdpr_respect_dnt). Admins with Debug Mode on are not skipped.
Complianz Integration
Script attributes for Require Consent + Consent Mode v2 updates from cmplz_fire_categories / cmplz_revoke.
Local Script Loading
Proxy GA4 gtag.js / GTM gtm.js only (Clarity, Plausible, Fathom, Matomo, Meta are not proxied). GTM loader still appends container id. Daily refresh cron.
Debug Mode (Pro)
Load tracking for admins (also bypasses DNT/GPC for that admin session); console lists valid providers plus Consent Mode, Require Consent, Complianz, DNT/GPC setting and request headers, and local scripts.
Save warnings: Consent Mode without GA4/GTM configured; Require Consent without Complianz Integration; Complianz Integration and/or Require Consent without the Complianz plugin; Local Script Loading without GA4/GTM.
Privacy-First Approach
No tracking by default — Analytics are disabled until explicitly configured.
Consent awareness — Optional Complianz gating and Pro Consent Mode v2.
Minimal data collection — Only necessary data points are tracked.
Conditional loading — With Require Consent + Complianz, scripts stay blocked until categories are granted.
Provider Configuration
Google Analytics 4
Setting
Description
Measurement ID
Your GA4 measurement ID (G-XXXXXXXXXX).
Anonymize IP
Optional legacy anonymize_ip gtag flag (GA4 anonymizes IPs by default).
Google Tag Manager
Setting
Description
Container ID
Your GTM container ID (GTM-XXXXXXX).
Data Layer (Pro)
One early dataLayer.push with page type (including WooCommerce shop — even as homepage — cart, checkout, order received), post metadata on singulars, and login state — before the container loads.
Injection: The head snippet loads gtm.js from Google or the local proxy base URL, then appends the container id query arg (required for local files, which do not embed the ID). A <noscript> iframe prints on wp_body_open, with a footer fallback if that hook never runs. Require Consent skips the noscript iframe.
Consent Mode v2 (Pro, under Privacy) also applies to GTM-only setups when GTM is enabled. Prefer either GA4 or GTM for the same Google Analytics tags to avoid double-counting; saving both enabled surfaces a warning.
Microsoft Clarity
Setting
Description
Project ID
From Clarity → Settings → Overview. Must match [a-z0-9]{6,16} (stored lowercase).
Injection: The official async loader prints in wp_head (not the footer). DNS prefetch uses clarity.ms. Only IDs that pass normalization are emitted — legacy or invalid stored values are skipped until corrected. Require Consent + Complianz gates the script as text/plain with data-service="clarity". Local Script Loading does not proxy Clarity (GA4/GTM only).
Save warnings: Enabling without a usable Project ID warns (including when a leftover invalid ID fails normalization). An invalid submitted ID is ignored: a previously valid ID is kept; if the stored value is also invalid it is cleared.
Plausible
Setting
Description
Domain
Site domain from Plausible. Pasted https:// / www. / paths are stripped per host; comma-separate multiple hosts (e.g. https://a.com, https://b.com). Stored lowercase. ASCII hostnames (or localhost).
Custom Script URL
Optional self-hosted or first-party proxy script (http/https). Blank uses https://plausible.io/js/script.js.
Injection: Official defer snippet prints in wp_head. DNS prefetch uses plausible.io or the custom script host. Only normalized domains are emitted; invalid stored domains never reach the page. If a stored custom URL fails validation at runtime, the cloud script URL is used until the setting is fixed. Require Consent + Complianz uses data-service="plausible". Local Script Loading does not proxy Plausible — use Custom Script URL for first-party proxying.
Save warnings: Enabling without a usable domain warns (including when a leftover invalid domain fails normalization). Invalid domain/URL keep a prior valid value or clear if stored value is also invalid.
Fathom
Setting
Description
Site ID
From Fathom → Settings → Sites ([A-Z0-9]{5,10}; stored uppercase, e.g. ABCDEFG or ABCD1234).
Custom Script URL
Optional custom-domain or proxied script (http/https). Blank uses https://cdn.usefathom.com/script.js.
Injection: Official defer snippet prints in wp_head. DNS prefetch uses cdn.usefathom.com or the custom script host. Only normalized Site IDs are emitted. If a stored custom URL fails validation at runtime, the cloud script URL is used until the setting is fixed. Require Consent + Complianz uses data-service="fathom". Local Script Loading does not proxy Fathom. Site-wide Respect DNT / GPC already skips Fathom (no separate data-honor-dnt). SPA/data-spa advanced attrs are not exposed — configure SPA tracking in Fathom or via a custom snippet if needed.
Save warnings: Enabling without a usable Site ID warns. Invalid ID/URL keep a prior valid value or clear if stored value is also invalid.
Matomo
Setting
Description
Matomo URL
Instance base URL. Accepts http(s)://…, protocol-relative //…, or bare host/path (https assumed). Explicit non-http schemes are rejected. Host required; trailing slash stripped. Self-hosted or Matomo Cloud (https://your-site.matomo.cloud).
Site ID
Positive integer site ID from Matomo ([1-9][0-9]{0,9}).
Privacy Mode
Browser Do Not Track + disable Matomo cookies (matomo_privacy_mode; legacy matomo_anonymize_ip migrates on read/save and via one-time aegis_matomo_privacy_mode_v1 migration). Configure IP anonymization in Matomo admin.
Injection: Official-style tracking bootstrap prints in wp_head (trackPageView, enableLinkTracking, setSiteId as integer, matomo.php / matomo.js). DNS prefetch uses the Matomo host. Only normalized URL + Site ID pairs are emitted. Require Consent + Complianz uses data-service="matomo". Local Script Loading does not proxy Matomo (use a first-party reverse proxy on your Matomo host if needed).
Save warnings: Enabling without a usable URL and/or Site ID warns with a specific message for each gap (both missing, URL only, or Site ID only). Invalid URL/Site ID keep a prior valid credential or clear if the stored value is also invalid.
Meta Pixel (Pro Only)
Setting
Description
Pixel ID
Numeric Meta Pixel ID from Events Manager (\d{5,20}). Invalid values keep a prior valid ID or clear if stored value is also invalid.
WooCommerce Events
When WooCommerce is active (WooCommerce::is_plugin_active(), not the Integrations toggle): ViewContent on product pages; AddToCart after woocommerce_add_to_cart (session payload, emitted once on the next HTML view); InitiateCheckout on checkout (cart value, currency, content IDs including variations); Purchase on order received (order total, currency, content IDs including variations; deduped per order via _aegis_meta_pixel_purchase_tracked).
Injection: Official base code + PageView print in wp_head (Pro gated). DNS prefetch uses connect.facebook.net. Only normalized Pixel IDs are emitted. Require Consent + Complianz uses data-service="facebook" / data-category="marketing" and skips the <noscript> image (it cannot be consent-gated). Local Script Loading does not proxy Meta.
Save warnings: Enabling without a usable Pixel ID warns. Invalid Pixel IDs keep a prior valid credential or clear if the stored value is also invalid.
See Analytics Pro for Pro-only analytics features and video analytics.
Performance
Analytics scripts use async or defer attributes and load only when a provider is configured and enabled.
WooCommerce Events
Meta Pixel (Pro) fires ViewContent, AddToCart (session-captured after add-to-cart, emitted on the next HTML view), InitiateCheckout, and Purchase when WooCommerce Events is on at Aegis → Connectors and WooCommerce::is_plugin_active() (WooCommerce, WC(), or WC_VERSION). That check is Connectors detection, not the Aegis → Integrations → E-commerce → WooCommerce toggle. AJAX add-to-cart without a full navigation still queues AddToCart for the following page load. Purchase is written once per order (_aegis_meta_pixel_purchase_tracked) so thank-you refreshes do not double-count; if Require Consent blocks the thank-you scripts and consent is never granted on that view, Purchase is not retried later.
Verifying Analytics
Open your site in a private/incognito window (admin users skip tracking unless Debug Mode is on; Debug Mode also bypasses DNT/GPC for that admin).
Open browser developer tools → Network tab.
Look for requests to your analytics provider domain.
Confirm in your provider’s real-time dashboard.
With Debug Mode (Pro) on, admins also see console lines listing providers with valid credentials plus Consent Mode, Require Consent, Complianz, DNT/GPC, and local-script state.
Export and reset
Provider settings live in aegis_analytics and are included in the global settings export. Tools → Reset defaults on Aegis → Connectors clears analytics along with BunnyCDN/Maps connector toggles and credentials — see Connectors and General Settings.
Core visibility settings are at Aegis → Conditionals (admin.php?page=aegis-settings). Turning an extra on shows its controls in the block editor (Visibility extras in the Visibility panel, Image Source extras in Image Source (Pro) on Featured Image). Turning it off hides the inspector and ignores saved rules of that type.
Choose which condition types are available in Aegis → Conditionals.
Plugin-specific extras are not on this page. They sit under the matching plugin on Aegis → Integrations. Smart Logic Page / Post Type has no extra (always available). Visibility Presets are Aegis → Presets (Pro).
Screen
What it gates
Conditionals → Visibility
Screen size, breakpoints, page type, browser/device, lockdown, query string; Pro cookie, referral, advanced location, post meta
Conditionals → Accessibility
Reduced motion, screen reader only, color scheme, high contrast, forced colors
Conditionals → User
Status, role, capability, specific users; Pro user meta
Conditionals → Schedule
Date & Time, weekdays, daily range, timezone
Conditionals → Image Source
Pro featured-image sources (content / ACF image / Meta Box image). Not visibility rules.
LearnDash, LifterLMS, Sensei enrollment/completion/progress (and quiz/group/membership where listed)
Integrations → Forms
Fluent Forms submissions; Fluent Booking
Integrations → Developer
ACF Field and Meta Box Field visibility rules (show/hide a block from a field value). Distinct from Image Source ACF/Meta Box image fields.
Integrations → CRM
WP Fusion tags, lists, and CRM logged-in. FluentCRM has no condition extras (Pro video events only).
Section
Purpose
Visibility
Screen size, custom breakpoints, page type, browser/device, lockdown, and query string. Cookie, referral, advanced location, and post meta need Pro.
Accessibility
Reduced motion, screen reader only, color scheme, high contrast, forced colors
User
Logged-in status, role, capability, specific user IDs, and user meta. User meta needs Pro.
Schedule
Date/time, weekdays, daily time range, timezone
Image Source Order
Content image by position, plus separate ACF and Meta Box image field toggles (plugin-gated; Pro)
Visibility extras
Extra
What it does
Screen Size
Hide on mobile (below 480px), tablet (480–1023px), or desktop (1024px and up)
Custom Breakpoints
Hide below and/or above a custom pixel width
Page Type
Front page, blog, singular, archive, search, or 404. Off by default; saved page-type rules are ignored until this extra is on, including on hook patterns.
Browser & Device
User-agent match for OS, browser, or device class
Lockdown
Hide the block from all frontend visitors
URL Query String
Match $_GET parameters (is, is not, exists, contains, numeric compares)
Cookie
Browser cookie value (Pro)
Referral Source
Referring domain (Pro)
Advanced Location
Post type, post IDs, taxonomy term, URL path, archive type (Pro)
Post Meta
Raw post meta key/value (Pro)
Accessibility extras
These extras add CSS classes. They do not remove HTML on the server. Turning an extra off hides its inspector controls, skips those classes on render, and does not emit the matching CSS (leftover classes in markup stay inert).
Extra
What it does
Reduced Motion
Hide the block when prefers-reduced-motion: reduce
Screen Reader Only
Visually hide the block (aegis-sr-only); it stays available to assistive tech
Color Scheme
Hide the block in light or dark mode. Follows the visitor toggle (is-style-dark / is-style-light), then the theme default on body (default-mode-dark, default-mode-light, or default-mode-system), then the OS prefers-color-scheme when dark mode is off
High Contrast
Hide the block when prefers-contrast: more
Forced Colors
Hide the block when forced-colors: active (including Windows High Contrast)
Blocks and page-level Conditionals add these classes to the existing first HTML element (the core/post-content wrapper on posts). Hook patterns wrap the whole pattern when there are several top-level blocks.
Schedule extras
These extras remove HTML on the server when the current time does not match. Turning an extra off hides its inspector controls and ignores saved rules of that type. Schedule is not a Smart Logic field — it stays on the dedicated extras UI.
Extra
What it does
Date & Time
Inclusive start and/or end datetime. Naive values (block datetime-local or the hook-pattern picker) have no offset: they are parsed in the schedule timezone when Timezone is on, or in the site timezone when that extra is off or empty — not the browser’s local zone. Unparseable values are skipped, same as empty.
Days of Week
Limit visibility to selected weekdays (Sunday–Saturday). An empty selection means no weekday restriction. Weekdays use the same timezone as Date & Time.
Daily Time Range
Limit visibility to a daily start/end time (H:i). If end is before start, the window wraps overnight. The inspector notes this.
Timezone
IANA identifier list for Date & Time, daily range, and weekdays. Empty uses the site timezone. Values that are not IANA (abbreviations such as EST, offsets such as UTC+2) stay in the dropdown labeled invalid so they are not cleared; evaluation uses the site timezone until you pick a listed zone.
Image Source extras
These extras are Pro. They are not visibility rules and are not Smart Logic fields. They change which image core/post-featured-image renders (any template, including Query Loop). The inspector is Image Source (Pro) on that block. Settings for the panel are localized on aegis-pro-image-source (aegisImageSource.settings). Turning an extra off hides that source in the inspector and ignores a saved source of that type (the featured image markup is left as-is; fallbacks are not applied).
Render uses the block’s context.postId so Query Loop items resolve the loop post. The editor preview prefers that context over the template’s post ID. Empty ACF/Meta Box URLs are treated as no image.
ACF and Meta Box stay disabled unless that plugin is installed and active and the matching Integrations → Developer parent is on. Content Image does not need a third-party plugin. ACF Field / Meta Box Fieldvisibility extras stay on Integrations → Developer; they do not belong on this tab.
Extra
What it does
Content Image
Use the Nth <img> in the post content (1-based). Fallback: featured image, SVG placeholder, or hide the block. If the post has no featured image, Pro still outputs a featured-image figure when a content image is found.
ACF Image Field
Use a named ACF image field (array, attachment ID, or URL). Same fallbacks.
Meta Box Image Field
Use a named Meta Box image field. Same fallbacks.
Sites that only stored the old combined Image Source toggle inherit ACF/Meta Box from Content Image until those keys are saved separately.
User extras
These extras remove HTML on the server when the visitor does not match. Turning an extra off hides its inspector controls and ignores saved rules of that type.
Extra
What it does
User Status
Show only to logged-in or logged-out visitors
User Role
Match WordPress roles (is / is not), with all/any relation. An empty role with is matches nobody; with is not it matches everyone.
User Capability
Match a primitive capability slug such as edit_posts (is / is not), with all/any relation. Typed values are normalized (Edit Posts → edit_posts). An empty capability matches the same way as an empty role. Object caps like edit_post need a post ID and will not match.
Specific Users
Match a comma-separated list of user IDs (show or hide)
User Meta
Match the current user’s meta key/value (Pro). Logged-out visitors count as having no meta
Smart Logic on posts, hook patterns, and snippets can use User / Logged-in, User Role, and User Capability when those extras are on. Those user fields only offer is / is not. Role values use the site’s role list. Capability is a typed slug (edit_posts); spaces become underscores. User Meta and Schedule stay on the dedicated extras UI (and the Pro Conditions inspector for User Meta), not in Smart Logic.
Plugin-specific condition defaults (WooCommerce, EDD, AffiliateWP, LMS, Fluent Forms, Fluent Booking, WP Fusion, ACF, Meta Box) are on Aegis → Integrations, on the matching category (E-commerce, LMS, Forms, Developer, CRM). Toggles stay disabled unless that plugin is installed and active and the parent integration is on. Saving with the parent off clears those extras.
Saved preset libraries live at Aegis → Presets (Pro). See Visibility Presets.
Tools at the top right has Export, Import, and Reset Defaults for conditionals settings.
Block Editor Conditions
Anyone who can edit posts can edit conditions. There is no separate role allow-list.
Add conditions to any block from its settings sidebar.
Select any block.
In the block settings sidebar, open Visibility.
Add rules. Enabled extras on a block are combined with AND logic.
Save or update the page.
Pro extras appear in a separate Pro Conditions panel when those toggles are on. Integration extras (WooCommerce, EDD, AffiliateWP, WP Fusion, and so on) appear in their own inspector panels when those toggles are on.
Block visibility uses the framework Visibility block setting plus the plugin Conditionals Evaluator. The visibility attribute is registered on every block type.
Condition Types
Condition
Description
User logged in / out
Authentication state (User)
User role
WordPress role match (User)
User capability
Primitive capability slug such as edit_posts (User). Object caps like edit_post will not match.
Specific users
User ID list (User)
User meta
Current user meta key/value (User, Pro)
Page type
Front page, blog, singular, archive, search, 404 (Visibility)
Screen size / custom width
Viewport CSS (Visibility)
Reduced motion / screen reader / color scheme / contrast
Preference CSS (Accessibility)
Browser & device
User-agent match (Visibility)
Date/time
Naive start/end datetime in the schedule or site timezone (Schedule → Date & Time)
Days of week
Selected weekdays in that same timezone (Schedule)
Daily time range
Daily start/end, including overnight windows (Schedule)
Timezone
IANA zone for schedule extras; empty or non-IANA values use the site timezone (Schedule)
Image source
Featured Image block source: content image, ACF, or Meta Box (Image Source, Pro)
Post and page visibility uses _aegis_conditions post meta on core/post-content. Hook patterns use the same payload. The editor shows Advanced Conditional Logic (smart groups) plus the enabled Visibility, User, Schedule, and Accessibility extras. Viewport and accessibility rules add CSS classes: posts keep the existing core/post-content wrapper; hook patterns wrap the pattern output.
Smart Logic
Advanced Conditional Logic on posts, hook patterns, and snippets uses AND groups separated by OR. Fields follow the same extras as block visibility. If every saved field is tied to a disabled extra, Smart Logic is ignored (the snippet or pattern still renders). Posts and hook patterns both evaluate Smart Logic through Evaluator::should_render_conditions() (hook patterns call that from should_render_pattern()).
Field
Extra
Page / Post Type
Always available (this is the current post type, not the Visibility Page Type extra)
User / Logged-in
User → User Status (is / is not)
User Role
User → User Role (is / is not; site role list)
User Capability
User → User Capability (is / is not; typed slug such as edit_posts)
Page / URL
Visibility → Advanced Location (Pro)
Query Parameter
Visibility → URL Query String
WP Fusion Tag
Integrations → CRM → CRM Tags (is / is not; catalog select. A stored ID missing from the catalog still appears as (saved). An empty tag with is matches nobody; with is not it matches everyone, same as an empty user role)
WP Fusion List
Integrations → CRM → CRM Lists (is / is not; catalog select with the same (saved) and empty-value behavior. Membership uses CRM list APIs when WP Fusion exposes them, not wpf_has_tag() alone)
WP Fusion Logged-in (CRM)
Integrations → CRM → CRM Tags or CRM Lists (is / is not; wpf_is_user_logged_in(), including auto-login. This is not WordPress User / Logged-in)
Performance
Server-side conditions are evaluated during rendering. Blocks that fail those conditions produce no HTML. Viewport and accessibility rules stay in the HTML and use CSS.
Caching Considerations
User-specific and time-based conditions (logged-in state, role, capability, schedule, cart, affiliate referral) may require cache exclusions or fragment caching for accurate results.
Hook pattern HTML is cached for one hour when that setting is on. Saving Aegis → Conditionals flushes those caches so turning extras off takes effect immediately.
The screen uses the shared Aegis admin layout. Snippets and Settings tabs sit at the top left (Settings is &tab=settings, also reached from the top bar Settings link). Add Snippet is at the top right, and on the Snippets tab Tools next to it has Export Snippets (every snippet and its code as a .json file) and Import Snippets (adds snippets from such a file).
Storage
Snippets are stored in uploads/aegis-snippets/ (not in the database export bundle).
Snippet Types
Pick a type first. The editor and run locations follow that type.
Type
Runs as
Default locations
Functions (PHP)
Included like functions.php (requires PHP opt-in)
Everywhere, frontend, admin, login, or a custom injection hook
Content
HTML, or mixed PHP + HTML when PHP is enabled
Site header, body open, footer, before/after content, shortcode, or a custom hook
CSS
Enqueued stylesheet
Frontend, admin, login, or block editor
JavaScript
Enqueued script
Frontend/admin header or footer, login, or block editor
Existing html snippets are treated as Content. CSS/JS snippets that stored a generic hook name are migrated to the type-aware locations above.
Snippet Editor
The edit screen is code-first:
Edit a snippet’s code, type, and location.
The top row has Snippets (back to the list), the type tabs, the Enabled switch, Cancel, and Create Snippet or Update Snippet. The Title field sits under it.
Type tabs switch syntax highlighting, linting, location list, and a starter template (<?php, content comments, CSS, or a JS IIFE). A line beside the Code label says what the selected type does.
Dark CodeMirror editor with language badge, Format, HTML/CSS/JS lint, and PHP php -l checks
Where to Run uses a dropdown plus a title/description catalog under the editor. Content locations list Shortcode, header, body open, and footer full-width, then Before/After content side by side. Custom injection hooks stay in the dropdown only.
Conditions sits under the location chooser
The Snippet card on the right holds group, priority, tags, and description. Early, Default, and Late set the priority to 5, 10, or 50 in one click, and the description counts up to 240 characters.
Fullscreen (beside Format) gives the code the whole window; Esc closes it.
Ctrl+S (Cmd+S on a Mac) saves the snippet, and leaving with unsaved changes asks first.
Revisions (on an existing snippet) lists the last ten earlier versions of the code. Restore loads one into the editor; press Update Snippet to keep it.
Search, Export, and Import stay on the snippets list, not the editor. Global settings and the custom-location catalog live on the Settings tab.
Pasting code that looks like another language suggests switching type. The type tab remains the source of truth.
Snippet Library
Library, in the code bar of the snippet editor (on a new snippet and when you edit one), opens a searchable list of ready-made snippets taken from this documentation. Pick one and it loads into the editor, switches to the right type, and fills in the title if it is empty. If you have already written code, Aegis asks before replacing it.
The Snippet Library.
The Library is grouped by where each snippet comes from:
Aegis Dash and Aegis Theme: hooks for schema, dark mode, template parts, assets, and more.
WooCommerce, Yoast SEO, and Gravity Forms: shown only while that plugin is active.
Aegis Ads, Aegis Docs, Aegis Forms, and Aegis Pro: each add-on adds its own group while it is active.
The Library only has snippets that change how your site behaves. Developer hooks for building on Aegis (adding admin tabs, notices, or screens, and changing update sources) stay in the Code Snippets Reference. It also never includes anything that an Aegis toggle already does, such as removing emoji scripts, which is on Aegis → Performance. An add-on can add its own group with the aegis_snippet_library filter. See Code Snippets Reference.
Shortcodes
Set a Content snippet’s run location to Shortcode. It no longer runs on its own. Place it with:
Copied!
HTML
[ aegis_snippet id="6-office-hours-notice" ]
The id is the snippet filename without the extension. It is derived from the title the first time you save, and does not change if you rename the snippet later. Save once, then copy the shortcode from the editor (copy button next to the tag).
Attributes you add are available inside PHP Content snippets as $atts. Enclosed content is $content. The snippet may print markup or return a string/number; printed output wins. If it produces nothing valid, users who can manage_options see a short error and everyone else sees nothing.
Conditional logic is evaluated when the shortcode renders. Legacy per-snippet tags such as [aegis_abc123] still work if they were already stored.
Groups and list filters
Each snippet can have an optional group (virtual folder) and tags. The list supports code snippets organization:
The snippets list with group filters.
Type filters with counts (All, Functions (PHP), Content, CSS, JavaScript) under the Your snippets heading
Search snippets across name, description, tags, and group, a tag filter, sort, and Hide inactive (remembered in the browser)
Grouped and Table views at the top right of the card (remembered in the browser); click a group to fold it
Sort by name, created, updated, or priority
Columns follow the same order on every Aegis list: Name, Description, Type, Runs At, Tags, Status, and Last Modified. Name, Status, and Last Modified sort when you click their headings.
Each row ends with the status switch, Edit, a duplicate button (the copy is saved disabled, as “Title (Copy)”), a download button (JSON), and a delete button. Switching a snippet on or off shows a notice at the top of the screen, green when it worked and red when it failed.
Status is Active (green) or Disabled (grey). Snippets paused after a fatal error show Paused (red) with the error in the description column.
Conditional logic on the editor is off by default. Turn on Enable Conditional Logic to build AND groups separated by OR. Page / Post Type is always available. Logged-in, role (from the site’s role list), capability (typed slug such as edit_posts; is / is not only), URL, query string, and WP Fusion tag/list/CRM-logged-in fields appear only when their extras are on at Aegis → Conditionals or Integrations. Viewport, accessibility, and Schedule extras are not on the snippet editor (Schedule is a dedicated extras UI on blocks, posts, and hook patterns). See Conditional Logic.
PHP Snippets and Safe Mode
It is a dedicated section on Aegis → Code Snippets → Settings.
Setting
Description
PHP snippets
Master switch for PHP snippet execution
Auto Safe Mode on fatal error
Enable Safe Mode automatically when a PHP snippet fatals
Enable Safe Mode
Disable all snippets and hook pattern output site-wide
Safe Mode URL
Secret ?aegis_safe_mode=TOKEN link that turns Safe Mode on without logging in. Copy and Regenerate sit next to the URL.
AEGIS_DISABLE_SNIPPETS
define( 'AEGIS_DISABLE_SNIPPETS', true ); in wp-config.php when HTTP is unreachable
Visiting the Safe Mode URL enables it and redirects to Snippets Settings (login if needed). When it is on, a red Safe Mode Active notice shows at the top of every Aegis screen with Turn Off Safe Mode (or Open Snippet Settings when the constant is defined). Click the × to hide the notice for the rest of your browser session; it comes back in a new session while Safe Mode is still on.
Safe Mode in the Admin Bar
Turn on Safe Mode in the admin bar in the Snippet settings card to also show a red Safe Mode item in the top admin bar, in the dashboard and on the front end, while Safe Mode is on. Its menu explains what is off and has Turn Off Safe Mode. It is off by default.
Admin screens still work in Safe Mode so you can pause or fix the offending snippet first. shows “Snippets are disabled” to administrators and nothing to everyone else.
Location Reference
The Snippets Settings tab includes an Available locations card (groups folded by default; click a group to open it). Switch each injection hook on or off for custom Content/PHP locations, or use Enable All / Disable All at the top of the card, then Save Settings. First-class type locations (header, shortcode, CSS frontend, and so on) do not depend on that catalog.
Snippet Settings
Global snippet settings (PHP opt-in, preview toggles, admin bar shortcuts) are in the Snippet settings card on Aegis → Code Snippets → Settings. Safe Mode is a separate card on that tab, with a visible URL, Copy, and Regenerate. Save Settings stays in view at the bottom of the screen and confirms with a green Settings saved. notice at the top of the screen.
The admin bar Positions item counts enabled hook patterns and snippets and uses singular/plural labels. See Injection Preview.
Search presets at the top left filters the list by name as you type.
Add Preset at the top right opens the editor.
With no presets yet, the screen shows No presets yet with its own Add Preset button.
Your presets lists each preset with its Name, Status, Last Modified date, a switch, Edit, and Delete. Delete asks for confirmation first. Status is Active or Paused: the switch pauses a preset, and a paused preset no longer appears in Apply Preset in the block editor. Click Name, Status, or Last Modified to sort.
Add Preset and Edit open a New preset or Edit preset card on the same page, with Name, Visibility rules, Cancel, and Save Preset. The search field and Add Preset are hidden while the card is open.
Saving, deleting, a missing name, and rules that are not valid JSON each show a notice at the top of the screen, green when it worked and red when it failed.
Without Pro, Add Preset links to Aegis → License (Get Pro upsell; the free plugin registers this page when Pro is inactive) and a notice at the top explains that presets need Aegis Pro (no in-button Pro badge). Condition types available in presets are toggled at Aegis → Conditionals (including User Status, User Role, User Capability, Specific Users, and Schedule).
Apply a preset from the block editor Apply Preset control.
Highlight registered hook locations on the frontend
Show snippet positions
Highlight active snippet injection points
Admin bar shortcuts
Add a Positions item to the frontend admin bar
Settings are stored in user meta per administrator.
Admin Bar Menu
When logged in as an administrator with Admin bar shortcuts on, the frontend toolbar shows the Aegis brand mark as a WordPress ab-icon plus a count label:
Injection Preview marks the hook locations on the page.
Item
Label
Parent
1 Position / n Positions — enabled hook patterns + enabled snippets. Tooltip: Aegis Position / Aegis Positions. Links to Aegis → Code Snippets.
Hooks
1 Hook / n Hooks with (On) or (Off). Tooltip: Show/Hide hook positions.
Snippets
1 Snippet / n Snippets with (On) or (Off). Tooltip: Show/Hide snippet positions.
Zero uses the plural form (0 Positions, 0 Hooks, 0 Snippets), matching WordPress _n().
The item follows core toolbar metrics (ab-icon, ab-label, 13px / 400, hover #72aee6). Do not restyle it as a custom flex chip or inject extra HTML after the node (meta.html prints after the item).
How It Works
Injection\Preview runs on the frontend when preview settings are enabled. It does not affect visitors who are not administrators with preview enabled.
Search hook patterns at the top left filters the list as you type.
Tools at the top right has Export and Import. They download or load every Aegis setting as a .json file, the same as on the settings screens; they don’t export hook patterns.
Add Hook Pattern opens the hook pattern editor (Pro). Without Pro it links to Aegis → License (Get Pro screen), and a notice at the top explains that hook patterns need Aegis Pro, with a link to Code Snippets for PHP, CSS, or HTML.
With no hook patterns yet, the screen shows No hook patterns yet with its own Add Hook Pattern button.
Hook patterns on this site lists each pattern: Name and author, Location (click the hook name to copy it), Priority, Conditions (Always or Conditional), Status, Last Modified, and at the end of the row a switch to enable or disable it, Edit, and Delete. Click Name, Status, or Last Modified to sort. On narrow screens the table scrolls sideways.
Switching a pattern on or off and Delete each show a notice at the top of the screen, green when it worked and red when it failed, including when the change fails.
Enabling locations for snippets is on Code Snippets → Settings.
Status Disabled (grey) means the pattern’s switch is off. Otherwise status is the post status: Published in green, and any other status (Draft, Pending, Scheduled, Private) in amber, because only published patterns are shown on the site.
ConditionsAlways means the pattern has no visibility rules. Conditional (or a rule count) means _aegis_conditions is active; click it to edit rules in the pattern editor. Which condition types are available is toggled at Aegis → Conditionals (including Page Type, User Status, User Role, User Capability, Specific Users, Schedule, and Accessibility) and Aegis → Integrations (including WP Fusion tag, list, and CRM logged-in when those extras are on). Saved rules for a disabled extra are ignored. Viewport and accessibility classes wrap the pattern output. Smart Logic on the pattern is evaluated on the front end with the same extras gating as posts. User Capability is a typed slug such as edit_posts (is / is not); object caps like edit_post will not match. Schedule extras (Date & Time, weekdays, daily range, timezone) use the dedicated extras UI, not Smart Logic. Naive start/end datetimes are interpreted in the IANA schedule timezone when that extra is on, otherwise the site timezone; non-IANA saved zones stay in the dropdown labeled invalid and evaluate as the site timezone. Daily ranges whose end is before start wrap overnight.
Delete moves the hook pattern to Trash. Enable/Disable sets _aegis_enabled without changing publish status.
Hook Pattern CPT (Pro Required)
A hook pattern with its location and conditions (Aegis Pro).
Catalog labels: Before Fluent Form, After Fluent Form.
Gravity Forms Integration Hooks
When Aegis → Integrations → Forms → Gravity Forms is on, IntegrationInjector bridges (priority 99 on gform_get_form_filter):
aegis_before_gform ($form)
aegis_after_gform ($form)
Both actions receive the Gravity Forms $form array passed to gform_get_form_filter. Catalog labels: Before Gravity Form, After Gravity Form.
Map Block Hooks
When the Google Maps connector is on (Aegis → Connectors → Maps, setting google_maps), IntegrationInjector wraps the rendered aegis/map block (render_block_aegis/map, priority 4):
aegis_before_map_block
aegis_after_map_block
Catalog labels: Before map block, After map block.
Video Block Hooks
These come from the Aegis Video add-on, which adds them to the catalog through the aegis_integration_locations filter. When the BunnyCDN connector is on (Aegis → Connectors → BunnyCDN, setting bunny_cdn), Aegis Video wraps the rendered core/video block (render_block_core/video, priority 99, so it runs after BunnyCDN and other video filters):
aegis_before_video_block
aegis_after_video_block
Catalog labels: Before video block, After video block.
Ninja Forms Integration Hooks
When Aegis → Integrations → Forms → Ninja Forms is on, IntegrationInjector bridges:
Catalog labels: Before LearnDash course, After LearnDash course, Before LearnDash lesson, After LearnDash lesson, Before LearnDash topic, After LearnDash topic, Before LearnDash quiz, After LearnDash quiz, LearnDash Focus Mode header, LearnDash Focus Mode footer.
LifterLMS Integration Hooks
When Aegis → Integrations → LMS → LifterLMS is on, IntegrationInjector bridges:
aegis_before_llms_course (lifterlms_before_main_content, priority 5, on single courses)
aegis_after_llms_course (lifterlms_after_main_content, priority 99, on single courses)
aegis_before_llms_lesson (lifterlms_before_main_content, priority 5, on single lessons)
aegis_after_llms_lesson (lifterlms_after_main_content, priority 99, on single lessons)
All actions pass $post_id. Catalog labels: Before LifterLMS course, After LifterLMS course, Before LifterLMS lesson, After LifterLMS lesson.
Sensei LMS Integration Hooks
When Aegis → Integrations → LMS → Sensei LMS is on, IntegrationInjector bridges:
aegis_before_sensei_course (sensei_before_main_content, priority 5, on single courses)
aegis_after_sensei_course (sensei_after_main_content, priority 99, on single courses)
aegis_before_sensei_lesson (sensei_before_main_content, priority 5, on single lessons)
aegis_after_sensei_lesson (sensei_after_main_content, priority 99, on single lessons)
aegis_before_sensei_quiz (sensei_before_main_content, priority 5, on single quizzes)
aegis_after_sensei_quiz (sensei_after_main_content, priority 99, on single quizzes)
All actions pass $post_id. Catalog labels: Before Sensei course, After Sensei course, Before Sensei lesson, After Sensei lesson, Before Sensei quiz, After Sensei quiz.
When delegation is enabled for an active SEO plugin:
Schema type
Source blocks
FAQ
Accordion / FAQ blocks
Event
Event blocks
Local Business
Map / business blocks
Video
Video blocks
Video Sitemap
Aegis Pro only
How It Works
Schema delegation settings.
Enable the SEO plugin integration at Aegis → Integrations → SEO (Rank Math, Yoast SEO, All in One SEO, or SEOPress). Schema extras stay locked until that plugin is active and its integration is on.
Enable schema delegation toggles under that plugin (FAQ, Event, Local Business, Video; Video Sitemap needs Pro). The seo_* keys are shared: the same extras appear under each installed SEO plugin, and runtime uses the currently active SEO plugin plus its integration toggle.
When delegation is active, the plugin SEO Manager suppresses duplicate schema from Aegis blocks.
The active SEO plugin becomes the canonical schema source.
Co-Authors Plus Author Schema (cap_author_schema on Integrations → Content) is separate. It is off by default and skipped by Enable All. Turn it on only if you want Aegis to emit Person JSON-LD for co-authors; leave it off when Yoast, Rank Math, or another SEO plugin already outputs author schema.
Breadcrumbs
Aegis delegates breadcrumb schema to the active SEO plugin while supporting the native WordPress Core Breadcrumbs block (core/breadcrumbs):
Visual markup: WordPress Core renders core/breadcrumbs, styled to match the theme design system tokens (theme.json) and stylesheet (vendor/aegis/framework/public/css/core-blocks/breadcrumbs.css). The same stylesheet also styles Rank Math’s .rank-math-breadcrumb, SEOPress’s .seopress-breadcrumbs, and Yoast’s #breadcrumbs / .yoast-breadcrumbs trails when present on the page. Separator styling targets Rank Math .separator and SEOPress .breadcrumb-sep only (not li::after); Yoast keeps its nested-span text separator and .breadcrumb_last current crumb without a forced flex wrapper.
Structured data: The active SEO plugin outputs its own BreadcrumbList schema graph in its JSON-LD output. Because Aegis delegates schema to the active SEO plugin, Aegis does not emit competing breadcrumb schema, avoiding schema duplication.
Plugin breadcrumbs: If a site uses another SEO plugin’s proprietary breadcrumb block or shortcode instead of core/breadcrumbs, the theme framework preserves and styles standard .breadcrumb / .breadcrumbs wrappers.
Developer Filter Hooks
Each SEO adapter exposes a filter hook to allow custom modification of schema data before it is returned:
SEO Plugin
Filter Hook
Parameters
Description
All in One SEO
aegis_aioseo_schema_output
(array $schema)
Filters the AIOSEO schema output graph array
Rank Math
aegis_rank_math_json_ld
(array $data, mixed $context)
Filters the Rank Math JSON-LD array
Yoast SEO
aegis_yoast_schema_graph
(array $graph, mixed $context)
Filters the Yoast SEO schema graph array
SEOPress
aegis_seopress_schemas_auto_schema
(array $schema, string $type)
Filters SEOPress automatic FAQ, Event, Local Business, or Video schema JSON ($type is faq, event, local_business, or video)
Video Schema
The Video Sitemap and Video Schema rows under each SEO plugin are drawn by Aegis Video (aegis_seo_integration_rows action) and save to the same seo_video_* keys; without Aegis Video they are hidden and read as off. Basic video schema comes from the Aegis Video add-on (Schema Markup under Aegis → Video → Settings). It still steps aside when an SEO plugin handles Video schema here. Video sitemap adapters require Aegis Pro and Aegis Video. See Video Stack.
Delete data on uninstall, and Delete All Aegis Data now
Performance toggles (oEmbed, dashicons, heartbeat, XML-RPC/head cleanup, emoji with Pro, embed facades, Query Loop Pro gate, WooCommerce cuts) are not on this page. Configure them at Aegis → Performance — see Performance.
Export / Import / Reset
Blocks, Conditionals, Integrations, Connectors, Performance, and Settings have Export, Import, and Reset Defaults under Tools at the top right. See Dashboard Overview.
Export, import, or reset the settings.
Global Export Bundle (AJAX)
The global export (wp_ajax_aegis_export_settings) includes these groups:
Group
Contents
conditional_logic
Conditionals feature toggles
integrations
Integration toggle states (aegis_integrations)
blocks
Block feature toggles
general
General settings (aegis_settings)
analytics
Connectors analytics providers (aegis_analytics)
Version: 1.0.0
Not Included in Global Export
The following are excluded from the global export bundle:
Export/import snippets separately through their respective admin pages where available. Configure BunnyCDN credentials at Aegis → Connectors → BunnyCDN — see Connectors. Tools → Reset defaults on Connectors clears those BunnyCDN/Maps credentials even though export omits them.
Reset
Reset actions are scoped per group: conditionals, integrations, connectors, blocks, performance, general. Reset restores all-off defaults (features are opt-in). The integrations group is used on Integrations and also clears aegis_pattern_control. Connectors uses connectors: BunnyCDN/Maps toggles + extras, BunnyCDN/Maps credentials, and aegis_analytics (plus local script proxy cleanup). Blocks reset leaves Performance keys unchanged (and still applies Pro gates so query_loop_performance cannot remain on without Pro). The blocks export payload uses the same gated settings as the admin UI.
Data / Uninstall
A Data section on this page controls plugin cleanup:
Setting
Default
Description
Delete data on uninstall
Off
When enabled, deleting the Aegis plugin also deletes settings, snippets, hook patterns, analytics caches, and Pro leftovers.
Delete all Aegis data
—
Immediate purge. Type DELETE to confirm. Does not remove the plugins.
Uninstall does not delete data unless Delete data on uninstall is enabled. Deactivating the plugin never deletes data.
The page uses a sidebar with WordPress (core script cuts), Core Blocks (Query Loop gate, embed facades), and WooCommerce (storefront script cuts; brand mark icon, same sidebar color as the other items). When WooCommerce is not active, the section status badge shows Inactive or Not Installed and the toggles are disabled.
WordPress already lazy-loads images and applies LCP fetchpriority. Speculative Loading (prefetch/prerender of in-viewport links) is built in since 6.8. Aegis does not duplicate those.
Where to Configure
Aegis → Performance.
Location
Scope
Aegis → Performance → WordPress
WordPress core script cuts, head/API cleanup, and emoji scripts (Pro)
Aegis → Performance → WordPress → Loading
Speculative loading mode and eagerness
Aegis → Performance → WordPress → Scheduling
Whether page views start WP-Cron, and the scheduler status
Aegis → Performance → WordPress → Housekeeping
Revisions to keep, autosave interval, trash retention
Aegis → Performance → Core Blocks
Embed facades, Query Loop Pro gate
Aegis → Performance → WooCommerce
Cart fragments, non-store assets, password strength meter. Shown only while WooCommerce is active
Enable at Aegis → Performance → WordPress (#wordpress):
Toggle
Default
Effect
Disable oEmbed Script
Off
Removes wp-embed and oEmbed discovery on the frontend
Disable Dashicons for Guests
Off
Stops dashicons CSS for logged-out visitors
Disable Frontend Heartbeat
Off
Dequeues Heartbeat scripts for guests on the frontend
Disable XML-RPC
Off
Sets xmlrpc_enabled to false and removes the X-Pingback header (site-wide, including xmlrpc.php)
Remove RSD Link
Off
Removes Really Simple Discovery from wp_head
Remove Shortlink
Off
Removes shortlink from wp_head and the Link response header
Remove Generator Tag
Off
Removes the WordPress generator meta tag and feed generator output
Remove REST API Links
Off
Removes REST discovery links from wp_head/headers (does not disable the REST API)
Remove Adjacent Posts Links
Off
Removes previous/next post rel links from wp_head
Remove Emoji Scripts
Off
Strips emoji detection scripts, styles, DNS prefetch, feeds, and TinyMCE emoji on frontend and admin
Disable Random Content Redirect
Off
Turns off the /random/ address that WordPress 7.2 adds, which redirects visitors to a random published post. Also removes its field from the Permalinks screen. Uses the core filter wp_enable_random_content_redirect
Script cuts (oEmbed, dashicons, heartbeat) and head cleanup apply on the public site only (not wp-admin, cron, or REST requests), except Disable XML-RPC, which is site-wide. Emoji removal also runs in the admin when the toggle is on. Disable Random Content Redirect is site-wide.
With Aegis Dash active, the theme defers frontend emoji removal to Remove Emoji Scripts. A standalone theme install keeps zero-base frontend emoji stripping.
Core Blocks
Enable at Aegis → Performance → Core Blocks (#core-blocks):
Toggle
Default
Effect
Query Loop Performance
Off
Master switch for Pro Query Loop caching, lazy-load (preload + viewport threshold), skeleton loading (AJAX pagination), hover prefetch, and query optimizations (no_found_rows, meta hints). Pro
Embed Facades
Off
Click-to-load YouTube/Vimeo embeds (theme framework). Without the free plugin, the theme enables facades by default.
Slider lazy-load stays under Aegis → Blocks → Slider. It uses Splide data-src, not native loading="lazy".
Enabling Query Loop Performance alone does not turn on Blocks → Query Loop feature extras. The Pro query-builder editor script loads when either that parent or this Performance gate is on.
WooCommerce
Enable at Aegis → Performance → WooCommerce (#woocommerce). Detection uses WooCommerce::is_plugin_active() (same idea as Connectors extras), not the Aegis → Integrations → WooCommerce toggle. The section badge uses Integrations Registry status (Active / Inactive / Not Installed). When WooCommerce is not active, toggles are disabled.
Toggle
Default
Effect
Disable Cart Fragments
Off
Dequeues wc-cart-fragments outside shop, product, cart, checkout, and account. Keep off if a classic header mini-cart must refresh on every page. Targets the classic script handle; block cart/mini-cart may not use it.
Disable Assets Elsewhere
Off
Dequeues WooCommerce scripts/styles on non-shop/product/cart/checkout/account pages
Limit Password Strength Meter
Off
Loads password strength scripts only on account and checkout form pages (not the order-received thank-you screen)
Store Data and Admin
These two groups sit under the toggles above. They are saved with the Loading, Scheduling, and Housekeeping settings in aegis_core_tuning.
Setting
What it does
High-Performance Order Storage
Shows whether WooCommerce keeps orders in its own tables (faster saves and a faster Orders screen), with a link to switch it in WooCommerce. It is a status only: switch it after checking that your payment and shipping plugins support it
Keep Finished Task Records (days)
How long Action Scheduler keeps records of finished and cancelled tasks, from 1 to 3650 days. Empty keeps 30. A shorter number keeps a very large task table small
Turn Off WooCommerce Admin
Removes the WooCommerce Home, Analytics, and marketing screens and the scripts behind them. Orders, products, and settings keep working. Off by default
The generator tag WooCommerce adds is removed by Remove Generator Tag under WordPress, so there is no separate switch for it.
Loading, Scheduling, and Housekeeping
Three groups under Aegis → Performance → WordPress cover things WordPress has no screen for.
Loading
WordPress already has speculative loading: the browser fetches the next page before a visitor clicks. It is on for visitors who are not logged in, on sites with pretty permalinks, and WordPress has no screen for it. These settings change how it works.
Setting
Choices
Notes
Speculative Loading Mode
WordPress default, Prefetch, Prerender, Off
Prefetch downloads the next page. Prerender also builds it in the background, so it opens instantly but costs more server and visitor bandwidth. Off turns speculative loading off
Speculative Loading Eagerness
WordPress default, Conservative, Moderate, Eager
Conservative starts when a link is pressed, moderate when the pointer hovers, eager as soon as a link is visible
It never turns speculative loading on where WordPress keeps it off (logged-in visitors, plain permalinks).
Scheduling
By default WordPress checks for scheduled work (publishing, backups, emails) whenever someone loads a page. That adds a request to visits and runs late on quiet sites. A scheduler on your server does the same work on time.
Run WP-Cron on Page Loads is On (WordPress default) until you change it. To switch to a server scheduler:
Add a scheduler to your server, running every 5 minutes. The screen shows two ready commands, one with curl against wp-cron.php and one with WP-CLI (wp cron event run --due-now).
Wait until Server scheduler last seen shows a recent time.
Choose Off, use my server scheduler and save.
As a safety net, Aegis keeps the page-load trigger on until it has seen your scheduler run within the last 30 minutes, so a missing or broken scheduler never leaves your site without WP-Cron. A request that WordPress makes to itself after a page view does not count as a scheduler.
Scheduler Status shows when the server scheduler was last seen, when the next task is due, and how many tasks are more than ten minutes overdue. A large overdue number with the page-load trigger off means the scheduler is not running.
If DISABLE_WP_CRON is set in wp-config.php, page views already do not start WP-Cron. The screen says so and the setting is locked; remove that line to manage it here.
Housekeeping
WordPress sets these with constants in wp-config.php and has no screen for them. Leave a field empty to keep the WordPress default.
Setting
Range
What it does
Post Revisions to Keep
0 to 1000
The most revisions kept per post, page, and custom post type. 0 turns revisions off. Older revisions go the next time a post is saved. Empty keeps every revision
Autosave Interval (seconds)
10 to 3600
How often the block editor and the classic editor save a draft copy. Empty keeps 60
Empty the Trash After (days)
1 to 3650
How long posts, pages, and comments stay in the trash before they are deleted for good. Empty keeps 30
The trash setting runs WordPress’s own daily purge with your number, because WordPress reads its constant before plugins load. A WP_POST_REVISIONS constant is overridden by a number set here.
These three groups are saved in the aegis_core_tuning option, separate from the toggles above. The global Export and Import include them as core_tuning, and Tools → Reset defaults on this screen clears them back to the WordPress defaults.
Query Loop Performance (Pro)
The Query Loop Performance toggle unlocks the Performance (Pro) sidebar on core/query blocks. See Query Performance Pro.
When the toggle is off, Pro does not apply cache, lazy-load overrides, skeleton, or prefetch. WordPress still lazy-loads Query Loop images. The Performance panel also stays hidden unless the admin gate is on (editor feature flags default off when localization is missing).
Export / Import / Reset
Performance keys are stored in the aegis_blocks option and included in the global export blocks group:
Key
Section
perf_disable_wp_embed
WordPress
perf_disable_dashicons
WordPress
perf_disable_frontend_heartbeat
WordPress
perf_disable_xmlrpc
WordPress
perf_remove_rsd_link
WordPress
perf_remove_shortlink
WordPress
perf_remove_generator
WordPress
perf_remove_rest_api_links
WordPress
perf_remove_adjacent_posts
WordPress
perf_remove_emoji
WordPress
perf_disable_random_redirect
WordPress
embed_facades
Core Blocks
query_loop_performance
Core Blocks
perf_woo_disable_cart_fragments
WooCommerce
perf_woo_disable_assets_elsewhere
WooCommerce
perf_woo_disable_password_strength
WooCommerce
query_loop_performance is forced off when Pro is inactive (reads, saves, imports, Blocks reset, and exports). The former perf_reduce_heartbeat key migrates to perf_disable_frontend_heartbeat once (aegis_perf_heartbeat_key_v1). Windows Live Writer / wlwmanifest is not offered — core removed that output in 6.3.
Tools → Reset defaults on this page turns only those keys off. Reset on Aegis → Blocks leaves Performance keys unchanged.
Relationship to Theme Performance
The theme uses a zero-base loading strategy — see Theme Performance for conditional assets, fonts, and Core Web Vitals guidance.
Shop, cart, checkout, product, and header patterns that contain wp:woocommerce/* blocks are owned by the companion plugin (patterns/woocommerce/). They appear in the inserter only when WooCommerce is active. FSE templates for those pages remain in the theme. See Plugin Patterns.
Multi-Step Checkout
The theme provides page-checkout-multi-step.html template with:
The multi-step checkout.
Shipping, Payment, and Review steps
Progress indicator
Form validation per step
Order summary sidebar
Assets are loaded by Aegis\Plugin\Integrations\WooCommerce\MultiStepCheckout when the WooCommerce integration is on and the checkout page uses the multi-step template (page-checkout-multi-step) or contains aegis-checkout-multi-step markup.
Enabling
Enable WooCommerce integration at Aegis → Integrations → E-commerce.
In the Site Editor, assign the Multi-Step Checkout template to your checkout page.
Aegis theme + Aegis plugin + Slider extras implied on
Modal patterns
Above + Modal block enabled
Map contact patterns
Above + Map block enabled
patterns/author/
Co-Authors Plus active and the integration on
patterns/woocommerce/**
Above + WooCommerce
patterns/wishlist/**
Above + TI WooCommerce Wishlist
Commerce patterns use the same slug convention as theme patterns (template-page-cart, header-default, etc.) via \Aegis\Utilities\Pattern::register_from_file() so FSE templates that reference pattern slugs continue to resolve.
The theme does not ship copies of those WooCommerce patterns. The exception is a Woo-free header/default for parts/header.html when WooCommerce is inactive; the plugin overlays the mini-cart variant of header-default when WooCommerce is active.
FSE templates (cart, checkout, wishlist, etc.) remain in the themetemplates/ directory. They are hidden from the Site Editor when dependencies are inactive; companion patterns register only when dependencies are active.
Generic commerce marketing patterns without WooCommerce blocks (trust badges, category grids with core blocks) stay in the theme.
Bookshop Patterns
Added in 1.0.2. They register with the other WooCommerce patterns (WooCommerce active). Slugs follow the first category plus the file’s Slug header.
Pattern
Slug
Use
Book Buy Box
product-book-buy
Single product buy box for a book
Related Novels
product-book-related
Related products under a book
Bookshop Catalog (Shop)
product-archive-live
Live product grid
Selected Works (Shop)
product-works-live
Live product grid
Author’s Desk (Shop)
product-desk-live
Live product grid
Journal Edition (Shop)
product-journal-live
Live product grid
Journal Shop Sidebar
sidebar-journal-shop
Shop sidebar
Catalog Store Header
header-store-catalog
Store header with search, customer account, and mini cart
Bookshop Store Header
header-store-bookshop
Store header with search, customer account, and mini cart
Hooks init at priority 12 (after the theme unregisters woocommerce/ plugin patterns at priority 11)
is_woocommerce_active() — WooCommerce::is_plugin_active() (WooCommerce, WC(), or WC_VERSION)
is_ti_wishlist_active() — defined( 'TINVWL_VERSION' ) or function_exists( 'tinvwl_get_wishlist' )
Recursively scans patterns/woocommerce/ when WooCommerce is active
Scans patterns/wishlist/ when both WooCommerce and TI Wishlist are active
Skips dot-prefixed PHP files; registers via \Aegis\Utilities\Pattern::register_from_file() for slug parity with theme FSE templates
Pattern audit
The theme tool tools/audit-patterns.php scans plugin patterns/woocommerce/ and patterns/wishlist/ for slug integrity. See Theme Development Tools.
Pro Patterns
Marketing and premium layout patterns live in Aegis Pro. See Pro Patterns.
Do not duplicate Pro pattern slugs in the theme or free plugin.
Contact form+map layouts (form-map, form-map-overlay) live in this plugin and register only when the Map block is enabled. Do not copy them into the theme.
The contact patterns (aegis/form-map, aegis/form-map-overlay, aegis/modal-contact) hold a static HTML form that only shows the layout. Keep them free of add-on code. While the Aegis Forms add-on is active, it registers its own versions under the same names, with a working Form block; when it is deactivated these files are used again.
Modal starters live only in this plugin (patterns/modal/, names aegis/modal-*). They register when Aegis → Blocks → Modal is enabled. Do not ship or draft them under the theme patterns/modal/ folder.
Related Posts grid, list, cards, and minimal layouts live in the theme (patterns/blog/related-posts-*.php, slugs blog-related-posts-*). They unregister when Aegis → Blocks → Related Posts is implied off. Do not copy them into this plugin.
Yes. The Aegis plugin requires the Aegis theme and will not load without it. This is a hard gate — the plugin is not compatible with other block themes.
Do I need Aegis Pro?
No. The free plugin includes Map and Modal blocks, integration toggles, code snippets, conditionals, hooks reference, analytics, and SEO schema delegation. Pro adds advanced video, query, hook pattern CPT, and Pro block features.
What is the difference between theme, plugin, and Pro?
Hook pattern CPT, video/BunnyCDN on core/video, query conditions on core/query, tabs/tab/image-compare blocks, block extensions, license
Configuration
Where do I enter Google Maps credentials?
Aegis → Connectors → Google Maps — browser and server API keys.
Where do I configure analytics?
Aegis → Connectors — one tab per provider (Google Analytics, Tag Manager, Clarity, Plausible, Fathom, Matomo, Meta Pixel). Shared consent settings (Consent Mode v2, Require Consent, DNT/GPC, Complianz, local scripts, Debug Mode) are on Privacy. Debug Mode (Pro) lists valid providers plus privacy state and bypasses DNT/GPC for that admin. Settings export with the global bundle (analytics); Tools → Reset defaults on Connectors clears them with other connector credentials.
Can I upload SVG files?
No. Aegis does not allow SVG uploads to the Media Library, because an SVG file can contain scripts. Paste SVG markup into the SVG Image variation (Aegis → Blocks → SVG) instead. Decorative icons use Aegis → Blocks → Icon on the WordPress Icon block (core/icon), not an Image Icon variation.
Where is WP Fusion configured?
Enable WP Fusion or WP Fusion Lite at Aegis → Integrations → CRM. CRM Tags and CRM Lists are separate extras. Either extra also enables Is logged in (CRM) on the Pro inspector and WP Fusion Logged-in (CRM) in Smart Logic (WP Fusion auto-login, not WordPress User / Logged-in). Tag and list pickers use the CRM catalog, not the current user’s tags. See Integrations Dashboard and Query Conditions — WP Fusion.
Where is FluentCRM configured?
Enable it at Aegis → Integrations → CRM. The toggle has no extras. With Aegis Pro, it gates core/video funnel, tag, and list events (logged-in contacts; IDs come from the saved block). Tag and list conditions are WP Fusion extras on the same category, not FluentCRM. See Integrations Dashboard and Video Stack — LMS and FluentCRM.
Where is WooCommerce configured?
Enable it at Aegis → Integrations → E-commerce. Cart Conditions, Customer History, and Product Context extras sit under that toggle (Pro inspector; not Smart Logic). Detection uses WooCommerce, WC(), or WC_VERSION. Turning the parent on loads framework shop/cart/checkout and breadcrumb CSS, wraps classic and Store Breadcrumb delimiters, unregisters WooCommerce plugin patterns unless WooCommerce Patterns is on, enables aegis_before_woocommerce_checkout / aegis_after_woocommerce_checkout and aegis_before_woocommerce_cart / aegis_after_woocommerce_cart, and loads multi-step checkout assets on the multi-step template. Query Loop product filters also need Blocks → Query Loop → Product Query. An installed but inactive copy of woocommerce/woocommerce.php shows as Inactive, not Not Installed. See Integrations Dashboard and Query Conditions — WooCommerce.
Where is Easy Digital Downloads configured?
Enable it at Aegis → Integrations → E-commerce. Cart Conditions, Customer History, and Download Context extras sit under that toggle (Pro inspector; not Smart Logic). Detection uses Easy_Digital_Downloads, EDD(), or EDD_VERSION. Turning the parent on loads framework download/checkout CSS (plugins/edd/edd.css) and enables aegis_before_edd_download / aegis_after_edd_download. Download type is EDD default / bundle (a leftover saved value of download is treated as default). An installed but inactive copy of easy-digital-downloads/easy-digital-downloads.php or easy-digital-downloads-pro/easy-digital-downloads.php shows as Inactive, not Not Installed. See Integrations Dashboard and Query Conditions — Easy Digital Downloads.
Where is AffiliateWP configured?
Enable it at Aegis → Integrations → E-commerce. Referral Visit, Affiliate Account, and Earnings extras sit under that toggle (Pro inspector; not Smart Logic). Detection uses Affiliate_WP, affiliate_wp(), or AFFILIATEWP_VERSION. Turning the parent on loads framework Affiliate Area and login/register form CSS, skips AffiliateWP affwp-forms on the frontend (admin screens keep it), and enables aegis_before_affwp_dashboard / aegis_after_affwp_dashboard. An installed but inactive copy of affiliate-wp/affiliate-wp.php shows as Inactive, not Not Installed. See Integrations Dashboard and Query Conditions — AffiliateWP.
Where is Fluent Forms configured?
Enable it at Aegis → Integrations → Forms. Has Submitted, Submission Count, and Field Value extras sit under that toggle (Pro inspector; not Smart Logic), along with the pattern-control extra Fluent Forms Patterns (fluentforms_keep_patterns). Detection uses FLUENTFORM, FLUENTFORM_VERSION, or FluentForm\App\Modules\Form\Form. Turning the parent on loads framework form styling (plugins/fluent-forms.css), disables default public styles (fluentform_load_default_public), and enables snippet locations aegis_before_fluentform / aegis_after_fluentform. An installed but inactive copy of fluentform/fluentform.php or fluentformpro/fluentformpro.php shows as Inactive, not Not Installed. See Integrations Dashboard, Query Conditions — Fluent Forms, and Theme Plugin Integrations.
Where is Fluent Booking configured?
Enable it at Aegis → Integrations → Forms. Has Booking, Upcoming Count, Past Count, and Booking Status extras sit under that toggle (Pro inspector; not Smart Logic), along with the pattern-control extra Fluent Booking Patterns (fluentbooking_keep_patterns). Detection uses FLUENT_BOOKING_VERSION or FluentBooking\App\App. Turning the parent on loads framework calendar and booking UI CSS (plugins/fluentbooking.css). An installed but inactive copy of fluent-booking/fluent-booking.php or fluent-booking-pro/fluent-booking-pro.php shows as Inactive, not Not Installed. See Integrations Dashboard, Query Conditions — Fluent Booking, and Theme Plugin Integrations.
Where is Gravity Forms configured?
Enable it at Aegis → Integrations → Forms. Detection uses GFForms, GFAPI, GF_MIN_WP_VERSION, or gravity_form(). Turning the parent on loads framework form styling (plugins/gravity-forms.css), disables default form theme styles (gform_disable_form_theme_css), and enables snippet locations aegis_before_gform / aegis_after_gform. An installed but inactive copy of gravityforms/gravityforms.php shows as Inactive, not Not Installed. See Integrations Dashboard and Theme Plugin Integrations.
Where is Ninja Forms configured?
Enable it at Aegis → Integrations → Forms. Detection uses Ninja_Forms, function_exists( 'Ninja_Forms' ), defined( 'NF_PLUGIN_VERSION' ), or defined( 'NF_VERSION' ). Turning the parent on loads framework form styling (plugins/ninja-forms.css), dequeues default and opinionated plugin styles (nf-display, ninja-forms-display, ninja-forms-display-opinions, nf-display-opinions, nf-layout-front-end), and enables snippet locations aegis_before_nf_form / aegis_after_nf_form. An installed but inactive copy of ninja-forms/ninja-forms.php shows as Inactive, not Not Installed. See Integrations Dashboard and Theme Plugin Integrations.
Where is LearnDash configured?
Enable it at Aegis → Integrations → LMS. Detection uses LEARNDASH_VERSION, class_exists( 'SFWD_LMS' ), defined( 'LEARNDASH_LMS_PLUGIN_DIR' ), or function_exists( 'learndash_init' ). Turning the parent on loads framework course, lesson, topic, quiz, and profile styling (plugins/learndash.css), binds Focus Mode logo URL (learndash_focus_header_logo_url and learndash_focus_mode_logo) to the theme custom logo, maps logo alt text (learndash_focus_header_logo_alt) to the site name, and enables snippet locations aegis_before/after_learndash_course, aegis_before/after_learndash_lesson, aegis_before/after_learndash_topic, aegis_before/after_learndash_quiz, and aegis_learndash_focus_header/footer. An installed but inactive copy of sfwd-lms/sfwd_lms.php or learndash/sfwd_lms.php shows as Inactive, not Not Installed. Pattern control extra LearnDash Patterns (learndash_keep_patterns) unregisters LearnDash plugin patterns from the editor at init priority 11 in Pro. See Integrations Dashboard, Query Conditions — LearnDash, and Theme Plugin Integrations.
Where is Code Block Pro configured?
Enable it at Aegis → Integrations → Developer. There are no extras. Detection uses CBPRouter or the registered kevinbatdorf/code-block-pro block — the plugin does not define CODE_BLOCK_PRO_VERSION. When the toggle is on, the theme overlay (plugins/code-block-pro.css) loads if wp-block-kevinbatdorf-code-block-pro is in the markup. An installed but inactive copy of code-block-pro/code-block-pro.php shows as Inactive, not Not Installed. See Integrations Dashboard and Theme Plugin Integrations.
Where is Syntax Highlighting Code Block configured?
Enable it at Aegis → Integrations → Developer. There are no extras. Detection uses Syntax_Highlighting_Code_Block\PLUGIN_VERSION or boot() — Weston Ruter’s plugin extends core/code and does not register a separate block. When the toggle is on, the theme overlay (plugins/syntax-highlighting-code-block.css) loads if hljs / shcb- markup is in the page, not on an unhighlighted wp-block-code. An installed but inactive copy of syntax-highlighting-code-block/syntax-highlighting-code-block.php shows as Inactive, not Not Installed. See Integrations Dashboard and Theme Plugin Integrations.
Where is Meta Box configured?
Enable it at Aegis → Integrations → Developer. The Meta Box Field extra sits under that toggle. Featured-image Meta Box Image Field is on Conditionals → Image Source and also needs this parent. Query Loop pickers need Blocks → Query Loop → Field Picker. Detection is RWMB_Loader or rwmb_meta() (Meta Box AIO counts). Turning the parent on loads framework form CSS and theme colour palettes on Meta Box colour fields. An installed but inactive copy of meta-box/meta-box.php or meta-box-aio/meta-box-aio.php shows as Inactive, not Not Installed. See Integrations Dashboard and Theme Plugin Integrations.
Why don’t saved visibility rules apply?
The matching extra must be on. Aegis → Conditionals gates core types (Visibility, Accessibility, User, Schedule, and Image Source). Aegis → Integrations gates plugin types (WooCommerce, EDD, LMS, Fluent Forms/Booking, WP Fusion tags/lists/CRM logged-in, and ACF/Meta Box field visibility). Turning an extra off hides its controls and ignores saved rules, including leftover viewport/accessibility CSS classes. Saving Conditionals also flushes hook-pattern caches.
User Capability rules use a primitive slug such as edit_posts (is / is not). Typed values are normalized (Edit Posts → edit_posts). Object caps like edit_post need a post ID and will not match.
Schedule Date & Time values are naive (no offset). They are interpreted in the IANA schedule timezone when Timezone is on, otherwise in the site timezone — not the browser’s local zone. Abbreviations such as EST and offsets such as UTC+2 stay in the dropdown labeled invalid and evaluation uses the site timezone. Daily ranges whose end is before start wrap overnight.
Image Source extras are Pro. They change core/post-featured-image (not the Visibility panel). Turning a source off ignores that saved source and leaves the featured image as-is. ACF and Meta Box image-source toggles stay disabled unless that plugin is installed and active and the matching Integrations → Developer parent is on. To show or hide a block from an ACF or Meta Box value, use Integrations → Developer (ACF Field / Meta Box Field), not Image Source.
How do I translate the plugin?
The plugin catalog is languages/aegis.pot (text domain aegis). Generate it from the plugin directory with npm run translate or npm run translate:studio. Do not add plugin strings to the theme POT (wp-content/themes/aegis/languages/aegis.pot). Pro uses aegis-pro.pot. See Building Assets.
Blocks
Which blocks require the plugin?
Map (aegis/map) and Modal (aegis/modal) are registered by the plugin. The theme registers six custom blocks. Video uses core/video (enhanced by the theme and plugin editor scripts).
Can I use the plugin without the theme?
No. The plugin checks for the Aegis theme on load and displays an admin notice if it is missing.
Can I disable block features?
Yes. Use Aegis → Blocks to toggle parent blocks and sub-features.
Why don’t I see WooCommerce patterns in the inserter?
WooCommerce block patterns register from patterns/woocommerce/ only when WooCommerce is active and this plugin is loaded. Install WooCommerce and activate the Aegis plugin. FSE templates stay in the theme; patterns are plugin-owned. See Plugin Patterns and Theme FAQ.
Yes. They are stored in the blocks group of the global export bundle — see General Settings. When Pro is inactive, query_loop_performance exports as off (same Pro gates as reads/saves).
Data and Privacy
Is data sent to third parties by default?
No. Analytics, Maps, and external services activate only when you configure credentials and enable them.
Where are snippets stored?
In uploads/aegis-snippets/, outside the global settings export bundle.
Add snippets through a plugin, not a theme’s functions.php. Code in a plugin survives theme updates and keeps working if you switch themes.
Aegis Code Snippets (recommended)
The free Aegis plugin has a built-in Code Snippets screen:
Go to Aegis → Code Snippets → Settings and turn on PHP Enabled.
Add a snippet and choose the Functions (PHP) type.
Paste the code, leave Where to Run on Everywhere (or pick Frontend only or Admin only), turn the snippet on, and save.
Functions snippets run early on init. A snippet that hooks something WordPress or the theme runs before init (for example after_setup_theme) belongs in a site-specific plugin instead. If a snippet causes a fatal error, Safe Mode pauses snippets so you can fix it.
add_filter( 'aegis_admin_tab_priorities', function ( array$priorities ): array {$priorities['snippets'] = 5; // Show Snippets right after Dashboard.return$priorities;} );
Add a Notice to an Aegis Screen
aegis_admin_before_{screen}_page — runs at the top of each screen. Screens: blocks, conditionals, connectors, general_settings, hooks, integrations, license, modals, performance, snippets, visibility_presets.
Copied!
PHP
add_action( 'aegis_admin_before_snippets_page', function (): void {echo'<div class="notice notice-info"><p>Ask the dev team before adding PHP snippets on production.</p></div>';} );
Build an Add-on Screen
Add-ons such as Aegis Docs use these hooks to fit into the Aegis admin.
Load your screen’s styles and scripts on your own screen only (check the hook suffix or the page query argument), with aegis-admin-ui as a dependency for the shared kit. Aegis screens are normal page loads, so nothing else needs your files. Print the data your screen starts with into the page, for example as a <script type="application/json"> block, so it draws without waiting for a REST request.
The Aegis menu is organised as Aegis → Plugins → [Plugin]. Screens without a plugin key belong to Aegis Dash. To list your screen as a plugin of its own, add 'group' => 'add-ons' to its aegis_admin_tabs entry (the tab becomes one link under Plugins). To group several screens under one plugin name, give each the same 'plugin' => 'your-plugin' and register the name with the aegis_admin_plugin_labels filter (key => label).
Hook
Type
Arguments
Use
aegis_general_settings_sections
action
Renderer $renderer
Print your own section inside the Aegis → Settings form, so it saves with the rest
aegis_admin_page_description
filter
string $description, string $tab_key
The description under an admin tab’s title
aegis_admin_settings_url
filter
string $url, string $page
The Settings link in the top bar. Return an empty string for none
aegis_admin_docs_url
filter
string $url, string $page
The Documentation link in the top bar. Default: https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/
aegis_dashboard_addons
filter
array $addons
Add a card to the Aegis dashboard. Each card: label, icon (dashicon slug), status (default Active), tone (ok, warn, err, info, or empty), summary, url, action, settings_url
aegis_admin_conditionals_sections adds markup after the Conditionals sections. aegis_connectors_nav_items, aegis_connectors_maps_section, and aegis_connectors_analytics_section add items to the Connectors sidebar and panels.
These screens use the shared admin UI kit: a section list item is .aegis-ui-subnav-item, a panel is .aegis-ui-section (Aegis shows one at a time and adds is-active), and settings go in a card of rows (.aegis-ui-card.aegis-ui-fields holding .aegis-ui-setting rows). Aegis\Plugin\Admin\UI::toggle() prints a ready-made switch row.
Copied!
PHP
add_action( 'aegis_connectors_nav_items', function (): void {echo'<a href="#my-service" class="aegis-ui-subnav-item"><span class="dashicons dashicons-cloud" aria-hidden="true"></span>My Service</a>';} );add_action( 'aegis_connectors_analytics_section', function (): void {?> <section id="my-service"class="aegis-ui-section"> <div class="aegis-ui-head"> <div class="aegis-ui-head-text"> <h2>My Service</h2> <p>Settings go here.</p> </div> </div> <div class="aegis-ui-card aegis-ui-fields"><?phpecho \Aegis\Plugin\Admin\UI::toggle( 'my_service[enabled]', true, 'Enable My Service', 'Load the tracking script on the front end.' ); ?> </div> </section><?php} );
The old aegis-nav-item, aegis-settings-section, aegis-settings-grid, and aegis-toggle-card classes no longer have any styling or behaviour on these screens.
Hook Locations
Add a Custom Location
aegis_injection_locations — the locations offered by Aegis → Snippets and Aegis → Hooks, grouped as global, admin, login, editor, theme, and integrations. Each location is hook => [ label, scope, requires ], where scope is frontend, admin, login, or editor.
Your theme or plugin must call do_action( 'my_theme_after_hero' ) where the content should appear.
Print Content at an Integration Location
The plugin fires aegis_before_{location} and aegis_after_{location} around integration output while that integration is on. Use them from code like any action:
Copied!
PHP
add_action( 'aegis_before_woocommerce_checkout', function (): void {echo'<p class="checkout-note">Orders ship within 24 hours.</p>';} );
add_action( 'aegis_after_learndash_lesson', function ( $post_id, $course_id, $user_id ): void {if ( learndash_course_completed( $user_id, $course_id ) ) {echo'<p class="lesson-note">You finished this course. Nice work!</p>'; }}, 10, 3 );add_action( 'aegis_before_gform', function ( $form ): void {if ( is_array( $form ) && 'Contact' === ( $form['title'] ?? '' ) ) {echo'<p>We reply within one business day.</p>'; }} );
Snippet Library
Add Snippets to the Library
aegis_snippet_library — the entries in the Library button of the snippet editor, each as array( 'group', 'type', 'label', 'desc', 'code' ). type is php, content, css, or js. Add an optional requires (woocommerce, yoast, gravityforms, aegis-ads, aegis-docs, aegis-forms, aegis-pro, or the name of a function or class) to show the entry only while that plugin is active.
Copied!
PHP
add_filter( 'aegis_snippet_library', function ( array$entries ): array {$entries[] = array('group' => 'My Plugin','type' => 'php','label' => 'Disable My Plugin Notices','desc' => 'Hides the dashboard notices from My Plugin.','code' => "<?php\nadd_filter( 'my_plugin_show_notices', '__return_false' );\n", );return$entries;} );
Add entries only while your plugin is active, so the group disappears with it.
Blocks
Load Extra Google Maps Libraries
aegis_map_google_libraries — Google Maps JavaScript libraries loaded for a Map block. Receives the list and the block attributes.
When an SEO plugin integration is on, Aegis hooks into that plugin’s schema output (priority 20) and passes it through an Aegis filter, so you can adjust it in one place.
Copied!
PHP
// Yoast SEO: the full graph.add_filter( 'aegis_yoast_schema_graph', function ( array$graph, $context ): array {foreach ( $graphas$i => $piece ) {if ( ( $piece['@type'] ?? '' ) === 'Organization' ) {$graph[ $i ]['foundingDate'] = '2012'; } }return$graph;}, 10, 2 );// Rank Math: the JSON-LD data.add_filter( 'aegis_rank_math_json_ld', function ( array$data, $context ): array {return$data;}, 10, 2 );// All in One SEO: the schema output.add_filter( 'aegis_aioseo_schema_output', function ( array$schema ): array {return$schema;} );// SEOPress: automatic schema. $type is faq, event, local_business, or video.add_filter( 'aegis_seopress_schemas_auto_schema', function ( array$schema, string $type ): array {if ( 'video' === $type ) {$schema['isFamilyFriendly'] = true; }return$schema;}, 10, 2 );
Uninstall
aegis_uninstall_purge — fires when the plugin deletes its data with Aegis Pro still installed (only when Delete data on uninstall is on). Use it to clean up your own Aegis-related data.
Copied!
PHP
add_action( 'aegis_uninstall_purge', function (): void { delete_option( 'my_child_theme_aegis_settings' );} );
Because this runs during plugin deletion, put it in a site-specific plugin or mu-plugin rather than a snippet or a theme if you rely on it.
cd wp-content/plugins/aegisnpm cicomposer install # PHPCS / WPCS (dev only)npm run build # Admin + video editor (Map/Modal are not compiled)npm run build:admin # assets/admin/buildnpm run build:editor # assets/editor/build/video-editor.jsnpm run lint # ESLint (video editor) and package.json lintcomposer lint # PHPCS
Requires Node 22.13 or later (.nvmrc: 22) and PHP 8.1 or later. composer.lock pins the PHPCS toolchain; Composer packages are dev-only and never ship in the release zip.
Map and Modal index.js / view.js are hand-maintained IIFEs, so there is no webpack build for them. Edit those files directly.
Development watch:
Copied!
Shell
npm run start:adminnpm run start:editor
What Gets Built
Output
Source
Map, Modal block assets
Hand-maintained in src/Blocks/map/ and src/Blocks/modal/ (index.js, view.js, style.css)
Compiled assets are committed for environments without Node. Re-run npm run build after changing block or admin sources.
In this Studio checkout, admin CSS/JS load from assets/admin/src when assets/admin/build/index.asset.php exists (Menu.php uses the asset file for dependencies/version, then the source files). .distignore excludes assets/admin/src, so a release zip must ship a current assets/admin/buildand enqueue it. After changing admin-settings.js or the admin CSS, run npm run build:admin before packaging.
Release packaging
Release tags (v*) run the release workflow (release.yml): build assets, run PHPCS, then rsync with .distignore into an aegis/ folder and attach aegis.zip + SHA256.
CI configuration, docs/, Node/Composer manifests, vendor/, admin/editor sources, tests/tools
.gitattributesexport-ignore mirrors .distignore for git archive. Details: the plugin’s root CONTRIBUTING.md.
Translations
The free plugin ships languages/aegis.pot (text domain aegis). Do not put plugin strings in the theme POT.
Copied!
Shell
cd wp-content/plugins/aegisnpm run translate # Requires `wp` on PATHnpm run translate:studio # WordPress Studio (Windows)
wp i18n make-pot scans PHP and JavaScript (--skip-block-json, same as the theme). Integration category labels, stack descriptions, and toggles live in src/Integrations/Registry.php — including the Community (bbPress) and Content (Co-Authors Plus) sections, per-plugin SEO stack copy (Rank Math, Yoast, All in One SEO, SEOPress), Code Block Pro / Syntax Highlighting overlays, AffiliateWP, Easy Digital Downloads, Fluent Forms / Booking, Gravity Forms, Ninja Forms, WooCommerce, and Meta Box. Multi-step checkout button copy lives in src/Integrations/WooCommerce/MultiStepCheckout.php. Admin Smart Logic strings live in assets/admin/smart-conditions.js (including WP Fusion tag/list/CRM-logged-in labels). The post/hook-pattern extras UI (assets/admin/hook-patterns-conditions.js) is scanned for wrapped wp.i18n strings. It does not scan TypeScript, so run npm run build:editor first if you changed assets/editor/video-editor.tsx — those strings come from assets/editor/build/video-editor.js. Docs are excluded from the scan.
Theme strings: wp-content/themes/aegis/languages/aegis.pot. Pro strings: wp-content/plugins/aegis-pro/languages/aegis-pro.pot.
Verification
With the Aegis theme and plugin active:
Map and Modal blocks appear in the block inserter
The Aegis admin menu loads without errors
Countdown, Slider, Toggle, and Related Posts blocks appear (from the plugin build)
aegis/├──assets/# Admin CSS/JS sources + build/, video editor, WooCommerce multi-step├──config/# Bootstrap PHP configs (updater, license, blocks, patterns, integrations, …)├──docs/# Plugin documentation (excluded from release zip)├──languages/# aegis.pot (plugin text domain; not the theme catalog)├──patterns/# Block patterns (gated and always-on)├──public/# Shipped front-end CSS (css/co-authors-plus.css)├──scripts/# Dev verification scripts for `wp eval-file` (excluded from release zip)├──src/# PSR-4 PHP (namespace Aegis\Plugin\) + custom autoload├──templates/# Admin page templates├──tools/# Developer tooling (excluded from release zip)├── aegis.php# Plugin bootstrap: updater, theme gate, textdomain, feature configs├── uninstall.php# Removes data only when "Delete data on uninstall" is enabled├── composer.json# Dev: PHPCS / WPCS (not shipped)├── phpcs.xml├── package.json├── .distignore # Release zip excludes (paired with .gitattributes export-ignore)├── BUILD.md# Build commands for theme, plugin, and Pro (not shipped)├── CHANGELOG.md# Release history (not shipped)├── CONTRIBUTING.md├── DESIGN.md# Admin design system: tokens and components (not shipped)├── README.md# Repository overview (not shipped)└── readme.txt
Runtime PHP uses src/autoload.php — there is no production Composer vendor/ in free-plugin release zips. See Building Assets.
patterns/
Directory
When registered
patterns/slider/
Slider block implied on
patterns/modal/
Modal block enabled
patterns/contact/
Plugin + theme active
patterns/author/
Co-Authors Plus active and the integration on
patterns/woocommerce/
WooCommerce active
patterns/wishlist/
WooCommerce + TI Wishlist active
There is no patterns/blog/. Related Posts layouts (blog-related-posts-*) live in the theme and unregister when Aegis → Blocks → Related Posts is implied off. Do not duplicate them here.
Commerce patterns use theme slug convention (template-page-cart, etc.) via \Aegis\Utilities\Pattern::register_from_file().
Free Get Pro / License upsell page (aegis-license) when Pro is inactive
Patterns/
CommercePatternRegistrar
Performance/
Frontend optimizations, Performance admin page
Seo/
Schema delegation manager and Adapters/ (AioseoAdapter, RankMathAdapter, YoastAdapter, SeopressAdapter, TsfAdapter)
Settings/
Repository, export/import
Snippets/
Code snippets loader
Utilities/
UserAgent device/browser matching for conditional logic
VisibilityPresets/
Presets admin page
Config bootstrap order
config/updater.php loads before the theme gate, so updates work without the Aegis theme. The rest load from aegis.php after the theme gate passes — see Architecture for the full list. Notable:
config/license.php — free License / Get Pro page (skipped when Aegis Pro is installed)
config/patterns.php — always-on demo patterns
config/woocommerce.php — MultiStepCheckout when WooCommerce::is_enabled()
aegis.php defines constants (DIR, FILE, VERSION, MIN_THEME_VERSION) and loads the plugin’s own PSR-4 autoloader, src/autoload.php. It does not use Composer at runtime. It then requires config/updater.php, which starts the plugin updater. This happens before the theme check, so updates still work without the Aegis theme.
Next, the plugin checks that the Aegis theme is active. Without it, bootstrap stops there and an admin notice is shown. If the theme is older than MIN_THEME_VERSION (1.0.0), the plugin still loads but shows a notice recommending an update.
With the theme active, the feature configs load in this order:
config/license.php registers the free License (Get Pro) page on after_setup_theme. The page is skipped when Aegis Pro is installed, because Pro replaces it with its license screen on the same aegis-license slug.
aegis.php also loads the plugin text domain (aegis) from languages/ on init. Plugin UI strings ship in languages/aegis.pot. They are not merged into the theme POT. See Building Assets.
Namespace
Package namespace:Aegis\Plugin\
Mapped to:src/
Module Overview
Module
Responsibility
Admin/
Menu, Renderer, AdminTabs, UI (shared admin kit helpers), the updater (native WordPress updates from the aegis.zip package of the latest release; repository filterable with aegis_plugin_update_repository)
Analytics/
Tracker, Connectors panel, Settings
Blocks/
Registrar, AdminPage, SettingsController, VideoSchema, and Settings. Blocks\Settings owns the whole aegis_blocks option: every block feature toggle (theme blocks, plugin blocks, and core block extensions such as Query Loop) plus the Aegis → Performance keys (embed_facades, perf_*)
Conditionals/
Evaluator, AdminPage, PostContentRenderer, SmartConditionsEvaluator, IntegrationsPanel (plugin extras on Aegis → Integrations). Posts and hook patterns share should_render_conditions(). User extras include status, role, capability (current_user_can on a normalized slug), specific users, and Pro user meta. Schedule extras parse naive datetimes with DateTimeImmutable in an IANA zone (or the site timezone); non-IANA saved zones fall back to the site timezone. Image Source extras are Pro (AegisPro\Query\ImageSource). Viewport/a11y classes go on the existing post-content root (Visibility::apply_classes()); hook patterns wrap (Visibility::wrap()).