Overview

Canonical sources

About the Plugin

The Aegis plugin is a companion to the Aegis theme. It will not bootstrap without the Aegis theme active — it is not designed for other block themes.

The Aegis dashboard added by the companion plugin.

Block ownership:

LayerRegisters
ThemeNone once the removal release ships (it registers the six blocks below only when the plugin has not)
PluginSix custom blocks (countdown, slider, slide, toggle, toggle-content, related-posts), Map (aegis/map), Modal (aegis/modal), Modal starter patterns (aegis/modal-*), admin dashboard, core/video editor extensions, WooCommerce/TI Wishlist patterns (when dependencies active)
ProTabs, 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.

Documentation Contents

Getting Started

Admin

Blocks

Features

Development

Reference

Help


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 Documentation Pro docs: Aegis Pro

Installation

Prerequisites

Ensure your environment meets the Requirements. The Aegis theme must be installed and active before you activate the plugin.

Installation Order

  1. Install and activate the Aegis theme.
  2. Install and activate the Aegis plugin.
  3. 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.

  1. Click Install Aegis Plugin. WordPress downloads aegis.zip from the latest release and installs it.
  2. 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

  1. Download aegis.zip from the latest release. Use the aegis.zip package, not a source code archive, which unpacks to a different folder name.
  2. Log in to WordPress admin.
  3. Navigate to Plugins → Add New → Upload Plugin.
  4. Choose aegis.zip and click Install Now.
  5. Click Activate Plugin.

Manual Installation

  1. Unzip aegis.zip and upload the aegis folder to /wp-content/plugins/.
  2. 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:

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):

Copied!
PHP
add_filter( 'aegis_plugin_update_repository', static function (): string { return 'my-org/aegis-plugin';} );

After Activation

All features are off by default on a fresh install. Enable only what you need:

Activation takes you to the Aegis dashboard.

  1. Open Aegis → Dashboard in the admin menu.
  2. Enable block features at Aegis → Blocks.
  3. Enable integrations at Aegis → Integrations (forums under Community → bbPress; SEO plugins under SEO; bylines under Content → Co-Authors Plus).
  4. Optionally configure conditionals, snippets, analytics, Aegis → Performance, and Aegis → Settings.

Existing sites keep previously implicit-on features enabled. Uninstall does not delete data unless Delete data on uninstall is enabled under Aegis → Settings.

Next Steps

For contributors: Building Assets.

Requirements

Production Requirements

RequirementMinimum Version
WordPress7.0 or later
PHP8.1 or later
Aegis theme1.0.0 or later, installed and active (required)

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

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.

ProductRequirement
Aegis pluginAegis theme (required)
Aegis themeWordPress 7.0+, PHP 8.1+ (WordPress 7.1+ for native Icon library registration)
Aegis ProAegis theme ≥ 1.0.0 + free Aegis plugin (recommended)

Install and activate the Aegis theme before activating the plugin.

Development Requirements

RequirementMinimum Version
Node.js20 or later
npm9 or later
Composer2 or later (if building from source)

See Building Assets for build commands.

Browser Support

Admin UI supports modern browsers (Chrome, Firefox, Safari, Edge — last two major versions).

Next Steps

Dashboard Overview

Base URL pattern: /wp-admin/admin.php?page={slug}

Admin Tabs

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.

TabMenu labelPage slug
DashboardDashboardaegis-dashboard
BlocksBlocksaegis-blocks
ModalsModalsaegis-modals
HooksHooksaegis-hook-patterns
Code SnippetsCode Snippetsaegis-snippets
PresetsPresetsaegis-visibility-presets
ConditionalsConditionalsaegis-settings
IntegrationsIntegrationsaegis-integrations
ConnectorsConnectorsaegis-connectors
PerformancePerformanceaegis-performance
SettingsSettingsaegis-general-settings
LicenseLicenseaegis-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 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.

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.

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.

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.

CardWhat the switch turns on or off
Aegis ProThe Pro features that live in Aegis Dash (the Pro toggles on Aegis → Blocks and Aegis → Performance). Turning them on needs an active license
Aegis VideoThe player, styles, theater mode, shortcuts, schema, and the Pro video features
Aegis AudioThe audio player features, including the Pro ones with a license
Aegis AdsAd label, lazy load, placeholders, sponsored labels, tracking, and the Pro ones (ad refresh, ad-block recovery, click-fraud protection) with a license
Aegis DocsThe Doc Set features such as search, table of contents, feedback, breadcrumbs, and link scan
Aegis FormsSpam 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:

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.

SectionPurpose
Query LoopQuery shape, layout, AJAX, and WooCommerce sub-features
SliderIncludes Lazy Loading (Splide, Pro)

See Performance and Query Performance (Pro).

Next Steps

Deactivation Feedback

The dialog

ControlWhat it does
ReasonOne 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 versionsOff by default. Adds the site address, WordPress version, PHP version, and site language
You may email me about thisOff by default. Shows an email field filled with your account’s address, which you can change
CancelCloses the dialog. Nothing is deactivated or sent
Skip and deactivateDeactivates without sending anything
Send and deactivateAvailable 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 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

HookTypeUse
aegis_deactivation_feedback_pluginsfilterPlugins that show the dialog, keyed by basename: array( 'slug' => …, 'name' => …, 'version' => … )
aegis_deactivation_feedback_endpointfilterWhere answers are sent. Return an empty string to send nothing
aegis_deactivation_feedback_privacy_urlfilterThe Privacy policy link under the form. Return an empty string to hide it
Copied!
PHP
add_filter( 'aegis_deactivation_feedback_plugins', function ( array $plugins ): array { $plugins[ plugin_basename( __FILE__ ) ] = array( 'slug' => 'my-addon', 'name' => 'My Add-on', 'version' => '1.0.0', ); return $plugins;} );

Custom Blocks

Block Ownership

BlockRegistered byNotes
aegis/mapAegis DashGoogle Maps + OpenStreetMap fallback
aegis/modalAegis DashPopup/overlay dialogs
aegis/countdown, slider, slide, toggle, toggle-content, related-postsAegis Dash (since 1.1.0)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/videoWordPress coreEnhanced 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.

Turn block features on or off in Aegis → Blocks.

Parent block sections:

SectionBlock / variation
AccordionList variation
CountdownCountdown block — Countdown
CounterParagraph variation
IconCore Icon block (core/icon). Aegis collections register on the WordPress Icon library (WP 7.1+). There is no Image Icon variation.
LightboxCore Image lightbox extras (grouped nav, zoom, thumbnails, swipe) — Theme Lightbox
ComparePro aegis/image-compare before/after slider — extras at Aegis → Blocks → Compare; see Pro Blocks
MapMap block (plugin)
MarqueeGroup variation — Marquee
ModalModal block (plugin)
NewsletterSearch variation — Newsletter
Query LoopCore query enhancement — Query Loop
Related PostsRelated Posts block — extras at Aegis → Blocks → Related Posts; see Related Posts
SliderSlider and Slide blocks — extras at Aegis → Blocks → Slider; see Slider and Slide
SVGImage 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.
ToggleToggle and Toggle Content blocks — Toggle
VideoCore video enhancement

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.

See Modal Block for full documentation: layouts, triggers, Aegis → Blocks → Modal extras, and render fallbacks.

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.

Free extras: Slide, Fade, Navigation Arrows, Pagination Dots, Infinite Loop, Keyboard Navigation, Responsive Slides. Pro extras: Autoplay, Advanced Effects (fade), Thumbnails, Lightbox, Mousewheel, Aspect Ratio, Lazy Loading, Arrow Styles, Dot Styles.

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.

Theme-owned (aegis/related-posts). There is no parent Related Posts toggle: enabling any extra at Aegis → Blocks → Related Posts implies the block.

ExtraInspectorOff fallback
Related ByRelated Byauto
Order ByOrder By / Orderdate, descending
Fallback BehaviorFallbacklatest posts
Style VariantsGrid / List / Cards / Minimalgrid
Excerpt LengthExcerpt Length20 words
Image Aspect RatioImage Aspect Ratio16/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.

Free extras: segment toggles, custom labels, separator, layout, expiry message, timezone, Schema.org Event. Pro extras: evergreen timer, animation styles, auto-restart, expiry actions, urgency styling.

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.

See Pro Blocks.

Toggle Block

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.

Next Steps

Countdown Block

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 → 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.

PropertyValue
Block nameaegis/countdown
Registered byAegis Dash 1.1.0 or newer
RenderDynamic (render.php + view.js)
RequiresAegis Dash and the Aegis theme (Pro sub-features optional)

Key attributes

AttributeTypeDefaultDescription
datetimestring""Target date/time (ISO 8601)
showDays / showHours / showMinutes / showSecondsbooleantrueVisible time units
labelsobjectDays, Hours, …Unit labels
separatorstringcoloncolon, dot, dash, or none
layoutstringinlineinline or stacked
expiryMessagestring""Shown when countdown reaches zero
timezonestringutcutc or local
schemaEnabledbooleanfalseEvent schema markup
schemaEventName / Description / Location / Urlstring""Schema.org Event fields

Usage

Set the target date and time in the Countdown settings.

  1. Insert the Countdown block from the block inserter.
  2. Set Target date in the block sidebar.
  3. Toggle which units to display (days, hours, minutes, seconds).
  4. Customize labels, separator, and layout.
  5. Add an Expiry message for when the timer ends.
  6. 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.

ExtraInspectorOff fallback
countdown_segmentsShow Days / Hours / Minutes / Secondsall units on
countdown_labelsDays / Hours / Minutes / Seconds labelsdefault English labels
countdown_separatorSeparatorcolon
countdown_layoutLayoutinline
countdown_expiry_messageExpiry Messageempty (timer stays visible at zero)
countdown_timezoneTimezoneutc
countdown_schemaSchema.org Eventschema 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.

See Aegis Dash Block Variations and Pro Block Extensions.

Developer notes

Next Steps

Slider and Slide Blocks

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 → 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.

BlockNameRole
Slideraegis/sliderCarousel wrapper — settings, navigation, autoplay
Slideaegis/slideSingle panel — holds any inner blocks

Slide blocks only insert inside a Slider (parent: aegis/slider in block.json).

Slider attributes

AttributeTypeDefaultDescription
typestringsliderslider, marquee (Splide AutoScroll; not the Group Marquee variation), or fade
perPagenumber1Visible slides
perMovenumber1Slides advanced per navigation
autoplaybooleanfalseAuto-advance
pauseOnHoverbooleantruePause autoplay on hover
loopbooleanfalseInfinite loop
dragbooleantrueTouch/mouse drag
showArrows / showDotsbooleantrueNavigation UI
speednumber400Transition ms
intervalnumber5000Autoplay interval ms
directionstringltrltr, rtl, or ttb
heightstring""Optional fixed height
breakpointsbooleantrueResponsive perPage
keyboardbooleantrueArrow keys when the slider is focused

Slide block

Usage

Add Slide blocks inside the Slider and set navigation in the sidebar.

  1. Insert the Slider block (defaults include three Slide children, one visible at a time).
  2. Build content inside each Slide.
  3. Configure autoplay, arrows, dots, and loop in Slider settings. Raise Slides Per Page to show more than one slide at once.
  4. Set Type to marquee for continuous scrolling (uses Splide AutoScroll). That is not the Group Marquee variation — see Block variations and Aegis Dash Marquee.
  5. 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.

ExtraInspectorOff fallback
slider_slideImplies the block (default slide type stays available)Slide type remains the default
slider_fadeType: FadeFade remaps to slide
slider_navigationShow Arrowsarrows off
slider_paginationShow Dotsdots off
slider_loopLooploop off
slider_keyboardKeyboard Navigationkeyboard off
slider_responsiveResponsive Breakpointsbreakpoints off
slider_autoplayAutoplay / 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.

See Aegis Dash Block Variations and Pro Block Extensions.

Developer notes

Next Steps

Toggle and Toggle Content Blocks

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.

BlockNameRole
Toggleaegis/toggleSwitcher control + two views
Toggle Contentaegis/toggle-contentOne view (slot a or b)

Toggle Content only inserts inside a Toggle block. The inserter template creates both views.

Toggle attributes

AttributeTypeDefaultDescription
switchStylestringswitchpill, switch, or buttons (limited to enabled extras)
alignmentstringcenterleft, center, or right
primaryLabelstringemptyLabel for view a (translated “First” when empty)
secondaryLabelstringemptyLabel for view b (translated “Second” when empty)
initialContentstringaWhich view is shown first
animationDurationnumber300Transition duration in ms (pill/switch motion and Pro animations)
allowNestedbooleanfalseAllow a Toggle inside Toggle Content (Pro extra toggle_nested)
instanceIdstringemptyStable 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.

  1. Enable at least one extra at Aegis → Blocks → Toggle (Pill, Switch, or Buttons is enough).
  2. Insert the Toggle block.
  3. Edit the two labels (with Custom Labels on) and add blocks inside each Toggle Content view.
  4. Click a label to preview the other view in the editor. Selecting a block inside a view also switches the preview to that view.
  5. 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.

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.

ExtraInspector / renderOff fallback
toggle_pillPill switcher styleStyle unavailable; another enabled style (or Switch) is used
toggle_switchSwitch (track + thumb) styleStyle unavailable
toggle_buttonsSeparate button styleStyle unavailable
toggle_positionAlignment (left / center / right)center
toggle_labelsEditable primary and secondary labelsLabels stay “First” / “Second”
toggle_animationsAnimation 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 and Allow 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.

See Aegis Dash Block Variations and Pro Block Extensions.

Developer notes

Next Steps

Related Posts Block

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 → 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.

PropertyValue
Block nameaegis/related-posts
Registered byAegis Dash 1.1.0 or newer
RenderDynamic (render.php + RelatedPostsQuery.php)
RequiresAegis Dash and the Aegis theme

This is the canonical related-posts path. The former core/query Related Posts variation was removed — see Updating.

Key attributes

AttributeTypeDefaultDescription
postsPerPagenumber3Number of posts
columnsnumber3Grid columns
styleVariantstringgridgrid, list, cards, minimal
taxonomySourcestringautoauto, category, post_tag, or author
orderBystringdatedate, rand, or title
orderstringdescasc or desc (hidden when order is random)
fallbackBehaviorstringlatestlatest or hide when no matches
showFeaturedImage / showDate / showExcerpt / showCategorybooleanvariesMetadata visibility
heading / headingTagstringRelated Posts / h2Section title
excerptLengthnumber20Word count
imageAspectRatiostring16/9Featured image ratio

Usage

Related Posts under a single post.

  1. Insert Related Posts (typically on single post templates).
  2. Set post count and layout variant.
  3. Choose Related by (auto taxonomies, category, tag, or author).
  4. Optionally set Order by (date, title, or random).
  5. 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.

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.

ExtraInspectorOff fallback
related_posts_taxonomy_sourceRelated Byauto
related_posts_orderbyOrder By / Orderdate, descending
related_posts_fallbackFallback Behaviorlatest posts
related_posts_style_variantsStyle Variant (grid, list, cards, minimal)grid
related_posts_excerpt_lengthExcerpt Length20 words
related_posts_image_ratioImage Aspect Ratio16/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 Pro aegisProRelatedPosts — see Query Loop Pro. That extends Query Loop; it does not replace aegis/related-posts.

Developer notes

Copied!
PHP
add_filter( 'aegis_related_posts_query', function ( $args, $post_id, $context ) { $args['posts_per_page'] = 6; return $args;}, 10, 3 );

Next Steps

Map Block

Overview

PropertyValue
Block nameaegis/map
Registered byAegis companion plugin
RequiresAegis theme + Aegis plugin

The theme does not register this block. Enable it (or any Map extra) at Aegis → Blocks → Map.

Configuration

Google Maps API keys

Aegis → Connectors → Google Maps

Google Maps keys live in Aegis → Connectors.

SettingPurpose
Google Maps toggleEnables Google as a Map block provider (Save Settings)
Browser API keyFrontend map tiles, editor preview, and interactions (HTTP referrer; never enable Geocoding on this key)
Server API keyServer-side geocoding (editor address search, Directions resolve, Test Connection)
Save / TestSave when either key is set (masked values preserved); Test requires the server key (toggle not required first)

See Connectors.

OpenStreetMap

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

ToggleWhat it does
Map Style PresetsSilver, Dark, Retro, Night, and Aubergine Google Maps styles (also applied to the Static Maps facade).
Map ControlsZoom, map type, street view, fullscreen, scroll-wheel, and drag controls.
DirectionsPro. Route between origin and destination (addresses resolved with the server Geocoding key; frontend receives coordinates only).
Store LocatorPro. Search box matches marker titles or lat,lng, then draws a radius circle.
GeolocationPro. Button to show the visitor’s location.
Heatmap LayerPro. Density overlay (loads the Google visualization library).
Drawing ToolsPro. Polygon, circle, rectangle, and polyline overlays.
KML/GeoJSON ImportPro. External geographic data layers.
Dynamic CPT MarkersPro. Markers from a custom post type’s lat/lng meta.
Custom Style JSONPro. Raw Google Maps style array (overrides presets, including the Static Maps facade).
Custom Marker IconsPro. Media-library marker icons (interactive map and editor preview; not the static facade).
Marker ClusteringPro. Groups nearby markers at lower zoom levels (vendored MarkerClusterer, no CDN). Editor preview included.

OpenStreetMap

ToggleWhat it does
OpenStreetMap FallbackUse OSM when a Google Maps block has no API key. You can also set the block provider to OpenStreetMap directly.

Shared

ToggleWhat it does
Multiple MarkersExtra markers with title/description info windows. The primary location pin always remains.
Schema.org MarkupLocalBusiness 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.

  1. Install and activate the Aegis theme and Aegis plugin.
  2. Enable the Map block extras you need at Aegis → Blocks → Map.
  3. Configure Maps under Aegis → Connectors → Google Maps (optional if you only use OSM).
  4. 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.

Image placeholder
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.

Next Steps

Modal Block

Overview

PropertyValue
Block nameaegis/modal
Registered byAegis companion plugin
RequiresAegis theme + Aegis plugin

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

ToggleWhat it does
Button TriggerRender a button that opens the modal. Off: no button trigger.
Icon TriggerOpen from an inline SVG/HTML icon button.
Text TriggerOpen from a text-style control.
Image TriggerOpen from a selected image.
Off-Canvas ModesOff-canvas (side panel) and bottom-sheet layouts. Off: those types render as a centered popup.
Fullscreen ModeFull-viewport layout. Off: fullscreen blocks render as a popup.
AnimationsFade, 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

OptionWhere the control sits
Top right of screen (default)Overlay corner (position: fixed), same as Lightbox
On dialogTop-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

ToggleWhat it does
Exit IntentExclusive trigger type and a stacking Pro toggle (open when the pointer leaves the top of the viewport).
Scroll DepthExclusive trigger type and a stacking Pro toggle (open after a scroll percentage).
Time DelayExclusive trigger type and a stacking Pro toggle (open after N seconds).
Auto CloseClose the dialog after a delay.
Show OnceRemember the visitor in localStorage for a number of days.
Device VisibilityLimit 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.

  1. Enable the Modal extras you need at Aegis → Blocks → Modal.
  2. Insert Modal (or start from Aegis → Modals).
  3. Choose a layout and trigger, then add inner blocks as the dialog body.
  4. 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.

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:

StarterAlways enablesAlso enables when Aegis Pro is licensed
Blank / Contact / VideoButton Trigger; Contact and Video also enable Animations—
NewsletterAnimationsExit Intent, Show Once
Cookie consentOff-Canvas Modes, AnimationsTime Delay, Show Once

Next Steps

Marquee

Overview

PropertyValue
Block namecore/group
Variation namemarquee
Triggerlayout.orientation === 'marquee'
Registered byAegis framework (theme vendor)
TogglesAegis plugin Blocks → Marquee

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

ToggleWhat it does
Pause on HoverPause the CSS animation on hover and focus. Off: animation keeps running.
Direction ControlReverse the scroll (right-to-left). Off: always forwards.
Speed ControlLoop duration in seconds (lower is faster). Off: 60s mobile / 90s desktop.
Repeat ItemsHow 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

ToggleWhat it does
Responsive SpeedSeparate 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.

  1. Enable Marquee extras you need at Aegis → Blocks → Marquee.
  2. In the editor, insert Marquee (Group variation) or set a Group’s layout orientation to marquee.
  3. Add inner blocks (text, logos, or a nested horizontal Group).
  4. 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

Patterns

Next Steps

Newsletter

Overview

PropertyValue
Block namecore/search
Variation namenewsletter
TriggerclassName contains is-style-newsletter
Registered byAegis framework (theme vendor)
TogglesAegis plugin Blocks → Newsletter

The theme does not register a separate aegis/newsletter block. Do not confuse this with:

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

ToggleWhat it does
Email ValidationOn signup fields, set type="email", autocomplete="email", and inputmode="email". Off: signup fields stay type="text". Signup fields are always required.
Success MessageAfter submit on a signup field, hide the field and show “Thanks for subscribing.” Off, and on decorative fields: no confirmation UI.
Custom PlaceholderHonor 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.

  1. Enable the Newsletter extras you need at Aegis → Blocks → Newsletter.
  2. In the editor, insert Newsletter (Search variation) or apply the Newsletter style to a Search block.
  3. 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

Patterns

Next Steps

Query Loop

Overview

PropertyValue
Block namecore/query
Registered byWordPress core
EnhancementsAegis framework (theme vendor) + Aegis Pro
TogglesAegis plugin Blocks → Query Loop; Performance at Aegis → Performance

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:

Feature Toggles

Extras are off on new installs. Existing sites keep previously implicit-on free extras.

Free plugin

ToggleWhat it does
Multiple Post TypesQuery more than one public post type.
Taxonomy FilteringFilter by category, tag, or custom taxonomy.
Include/Exclude PostsManually include or exclude post IDs.
Custom Field QueryFilter by a custom field key, compare, and value.
Order by Custom FieldSort by a custom field.
Extended OrderingRandom (with optional seed), comment count, modified, menu order, author, slug, parent.
Responsive ColumnsColumn 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 ControlsRow and column gap on the post template grid.
Featured First PostFirst post spans multiple columns (needs Responsive Columns or a grid Query Loop).
Equal Height CardsStretch query cards to equal height.
No Results TemplateCustom 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

ToggleWhat it does
Advanced Meta QueryMultiple meta clauses with AND/OR.
Date QueryRelative ranges, after/before dates, or a specific year/month/day.
Parent/Child PostsQuery children of the current or a specific post.
Field PickerField picker in Advanced Meta Query when ACF or Meta Box is active and that Integrations → Developer toggle is on.
AJAX PaginationLoad more, infinite scroll, or AJAX page numbers.
Frontend FiltersTaxonomy, search, and sort filters on the frontend.
Masonry LayoutCSS or JS masonry grid.
Carousel LayoutSlider with navigation, dots, autoplay, and loop.
Product QueryProduct 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.

  1. Enable the extras you need at Aegis → Blocks → Query Loop.
  2. Insert a Query Loop block.
  3. 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

Next Steps

Code Block

The Code section on the Blocks screen.

A block’s own setting in the editor always wins over these defaults.

Free Settings

SettingDefaultWhat it does
Copy ButtonOnShows a Copy to clipboard button on code blocks. Off: no button unless a block turns it on.
Line NumbersOffNumbers the lines of code blocks by default.
Wrap Long LinesOffWraps long lines instead of scrolling sideways.
Language LabelOffShows 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.

SettingHow you use it
Collapse Long BlocksAutomatic. A block over 20 lines is cut off with a Show more button underneath.
Filename BarStart 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 LinesAfter 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 ButtonAdds a button that saves the block as a file, named after the filename bar, or code.<language>, or code.txt.
Copy Button PositionAdd 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

Next Steps

Block Variations (Plugin Toggles)

How Toggles Work

Each variation can be turned on or off.

  1. The framework registers variations when a parent feature key is enabled in plugin settings.
  2. ServiceProvider::is_block_enabled() reads aegis_blocks options.
  3. When the plugin is inactive, framework defaults treat features as enabled.
  4. 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

VariationBase BlockToggle key
Accordion Listcore/listaccordion
Countercore/paragraphcounter
Curved Textcore/paragraph(framework)
Gridcore/group(framework)
Marqueecore/groupmarquee
Newslettercore/searchnewsletter
SVGcore/imagesvg (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.

See Theme Block Variations for usage and editor behavior.

Sub-Features

Each parent block has many sub-feature toggles (~150 total). Examples:

Pro-gated toggles display a Pro badge in the Blocks admin UI.

Next Steps

Modals Tab

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:

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:

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.

  1. Open Aegis → Modals.
  2. 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.
  3. 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.
  4. 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).

Next Steps

Integrations Dashboard

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.

SectionAnchorPlugins
Community#communitybbPress
Content#contentCo-Authors Plus
CRM#crmFluentCRM, WP Fusion
Developer#developerAdvanced Custom Fields, Code Block Pro, Meta Box, Syntax Highlighting
E-commerce#ecommerceAffiliateWP, Easy Digital Downloads, WooCommerce
Forms#formsFluent Booking, Fluent Forms, Gravity Forms, Ninja Forms
LMS#lmsLearnDash, LifterLMS, Sensei LMS
SEO#seoAll 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:

Detection methods:

See SEO Schema Delegation and Video Stack.

Schema Delegation

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

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.

SectionAnchorPurpose
BunnyCDN#bunnycdnStream hosting, CDN credentials, and Pro video extras. Appears when the Aegis Video add-on is active.
Google Maps#mapsBrowser and server API keys for the Map block
Google Analytics#ga4GA4 measurement ID, IP anonymization
Tag Manager#gtmGTM container ID, Data Layer (Pro)
Clarity#clarityProject ID ([a-z0-9]{6,16}); official async snippet in head
Plausible#plausibleDomain (+ optional script URL); per-host URL strip; defer snippet in head
Fathom#fathomSite ID (+ optional script URL); defer snippet in head
Matomo#matomoInstance URL (http(s) / // / bare host), Site ID, Privacy Mode; head bootstrap
Meta Pixel#meta-pixelPixel ID (numeric), WooCommerce events (Pro); head base code
Privacy#privacyConsent Mode v2 (Pro), Require Consent, DNT/GPC, Complianz, local scripts, debug (Pro)

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)

ExtraKeyBehavior
Stream Librarybunny_cdn_stream_libraryBrowse/select Stream library videos in the block editor
Direct Uploadbunny_cdn_direct_uploadUpload to Stream from the editor (proxied through WordPress)
HLS Streamingbunny_cdn_hls_streamingHLS.js + quality switcher; off → iframe embed
AI Transcriptionbunny_cdn_ai_transcriptionTranscribe/captions REST + webhook auto-transcribe
Video Thumbnailsbunny_cdn_video_thumbnailsStream thumbnail.jpg poster on HLS players

Credentials (aegis_bunnycdn)

FieldRole
Account API KeyConnection test against api.bunny.net; Stream REST fallback AccessKey
Pull Zone NameBunny pull-zone slug for *.b-cdn.net playback
CDN HostnameOptional custom CDN host (preferred over pull-zone slug when set)
Token Authentication KeyPull-zone URL token key for private HLS signing
Stream Library IDDefault library for editor + API lock
Stream API KeyLibrary AccessKey for video.bunnycdn.com (preferred over Account key)
Webhook Signing SecretLibrary 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

Migrations

Maps

The Google Maps panel always loads on Connectors so you can enable the provider and save keys.

FieldRole
Browser API KeyStatic Maps facade, Maps JavaScript, editor preview (HTTP referrer restriction)
Server API KeyEditor 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

ControlBehavior
Key rolesBrowser: 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 geocodeGET aegis/v1/map/geocode — edit_posts only, address max 200 chars, 20 requests/min per user. Server key never localized to the browser.
DirectionsFree-text origins/destinations resolve server-side (cached) to lat,lng before the public map loads — no browser Geocoder.
Store LocatorMatches 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 librariesPage-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.

All of these live on the Privacy tab (#privacy), not on the GA4 or Tag Manager tabs:

Privacy options for analytics.

SettingBehavior
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 ConsentMarks 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 / GPCSkips all providers when the request has DNT: 1 or Sec-GPC: 1 (gdpr_respect_dnt).
Complianz IntegrationAdds Complianz script attributes and drives Consent Mode updates when that option is on.
Local Script LoadingProxies 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.

See Analytics.

Next Steps

Analytics

Configuration

Analytics settings are in the WordPress admin:

Analytics providers are set up in Aegis → Connectors.

  1. Navigate to Aegis → Connectors.
  2. Open the provider tab (Google Analytics, Tag Manager, Clarity, Plausible, Fathom, Matomo, or Meta Pixel).
  3. Enable the provider and enter credentials.
  4. Configure shared consent options on Privacy.
  5. Save your settings.

Note

Analytics is not configured under Appearance → Editor → Styles. All analytics settings live on the plugin Connectors screen.

Supported Providers

ProviderTypeAvailability
Google Analytics 4 (GA4)Full analyticsFree plugin
Google Tag Manager (GTM)Tag managementFree plugin
Microsoft ClarityBehavior analyticsFree plugin
PlausiblePrivacy-focusedFree plugin
FathomPrivacy-focusedFree plugin
MatomoSelf-hosted or Matomo CloudFree plugin
Meta PixelAdvertisingAegis Pro
Consent Mode v2Privacy compliance (GA4 and/or GTM)Aegis Pro
GTM Data LayerPage-context dataLayer pushAegis Pro
Debug ModeAdmin 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.

SettingDescription
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 ConsentHold 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 / GPCSkip 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 IntegrationScript attributes for Require Consent + Consent Mode v2 updates from cmplz_fire_categories / cmplz_revoke.
Local Script LoadingProxy 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

  1. No tracking by default — Analytics are disabled until explicitly configured.
  2. Consent awareness — Optional Complianz gating and Pro Consent Mode v2.
  3. Minimal data collection — Only necessary data points are tracked.
  4. Conditional loading — With Require Consent + Complianz, scripts stay blocked until categories are granted.

Provider Configuration

Google Analytics 4

SettingDescription
Measurement IDYour GA4 measurement ID (G-XXXXXXXXXX).
Anonymize IPOptional legacy anonymize_ip gtag flag (GA4 anonymizes IPs by default).

Google Tag Manager

SettingDescription
Container IDYour 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

SettingDescription
Project IDFrom 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

SettingDescription
DomainSite 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 URLOptional 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

SettingDescription
Site IDFrom Fathom → Settings → Sites ([A-Z0-9]{5,10}; stored uppercase, e.g. ABCDEFG or ABCD1234).
Custom Script URLOptional 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

SettingDescription
Matomo URLInstance 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 IDPositive integer site ID from Matomo ([1-9][0-9]{0,9}).
Privacy ModeBrowser 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)

SettingDescription
Pixel IDNumeric 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 EventsWhen 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

  1. 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).
  2. Open browser developer tools → Network tab.
  3. Look for requests to your analytics provider domain.
  4. 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.

Next Steps

Conditional Logic

Admin Configuration

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).

ScreenWhat it gates
Conditionals → VisibilityScreen size, breakpoints, page type, browser/device, lockdown, query string; Pro cookie, referral, advanced location, post meta
Conditionals → AccessibilityReduced motion, screen reader only, color scheme, high contrast, forced colors
Conditionals → UserStatus, role, capability, specific users; Pro user meta
Conditionals → ScheduleDate & Time, weekdays, daily range, timezone
Conditionals → Image SourcePro featured-image sources (content / ACF image / Meta Box image). Not visibility rules.
Integrations → E-commerceWooCommerce cart, customer, product; EDD cart, customer, download; AffiliateWP referral, affiliate account, earnings
Integrations → LMSLearnDash, LifterLMS, Sensei enrollment/completion/progress (and quiz/group/membership where listed)
Integrations → FormsFluent Forms submissions; Fluent Booking
Integrations → DeveloperACF 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 → CRMWP Fusion tags, lists, and CRM logged-in. FluentCRM has no condition extras (Pro video events only).
SectionPurpose
VisibilityScreen size, custom breakpoints, page type, browser/device, lockdown, and query string. Cookie, referral, advanced location, and post meta need Pro.
AccessibilityReduced motion, screen reader only, color scheme, high contrast, forced colors
UserLogged-in status, role, capability, specific user IDs, and user meta. User meta needs Pro.
ScheduleDate/time, weekdays, daily time range, timezone
Image Source OrderContent image by position, plus separate ACF and Meta Box image field toggles (plugin-gated; Pro)

Visibility extras

ExtraWhat it does
Screen SizeHide on mobile (below 480px), tablet (480–1023px), or desktop (1024px and up)
Custom BreakpointsHide below and/or above a custom pixel width
Page TypeFront 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 & DeviceUser-agent match for OS, browser, or device class
LockdownHide the block from all frontend visitors
URL Query StringMatch $_GET parameters (is, is not, exists, contains, numeric compares)
CookieBrowser cookie value (Pro)
Referral SourceReferring domain (Pro)
Advanced LocationPost type, post IDs, taxonomy term, URL path, archive type (Pro)
Post MetaRaw 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).

ExtraWhat it does
Reduced MotionHide the block when prefers-reduced-motion: reduce
Screen Reader OnlyVisually hide the block (aegis-sr-only); it stays available to assistive tech
Color SchemeHide 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 ContrastHide the block when prefers-contrast: more
Forced ColorsHide 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.

ExtraWhat it does
Date & TimeInclusive 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 WeekLimit visibility to selected weekdays (Sunday–Saturday). An empty selection means no weekday restriction. Weekdays use the same timezone as Date & Time.
Daily Time RangeLimit visibility to a daily start/end time (H:i). If end is before start, the window wraps overnight. The inspector notes this.
TimezoneIANA 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 Field visibility extras stay on Integrations → Developer; they do not belong on this tab.

ExtraWhat it does
Content ImageUse 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 FieldUse a named ACF image field (array, attachment ID, or URL). Same fallbacks.
Meta Box Image FieldUse 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.

ExtraWhat it does
User StatusShow only to logged-in or logged-out visitors
User RoleMatch WordPress roles (is / is not), with all/any relation. An empty role with is matches nobody; with is not it matches everyone.
User CapabilityMatch 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 UsersMatch a comma-separated list of user IDs (show or hide)
User MetaMatch 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.

  1. Select any block.
  2. In the block settings sidebar, open Visibility.
  3. Add rules. Enabled extras on a block are combined with AND logic.
  4. 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

ConditionDescription
User logged in / outAuthentication state (User)
User roleWordPress role match (User)
User capabilityPrimitive capability slug such as edit_posts (User). Object caps like edit_post will not match.
Specific usersUser ID list (User)
User metaCurrent user meta key/value (User, Pro)
Page typeFront page, blog, singular, archive, search, 404 (Visibility)
Screen size / custom widthViewport CSS (Visibility)
Reduced motion / screen reader / color scheme / contrastPreference CSS (Accessibility)
Browser & deviceUser-agent match (Visibility)
Date/timeNaive start/end datetime in the schedule or site timezone (Schedule → Date & Time)
Days of weekSelected weekdays in that same timezone (Schedule)
Daily time rangeDaily start/end, including overnight windows (Schedule)
TimezoneIANA zone for schedule extras; empty or non-IANA values use the site timezone (Schedule)
Image sourceFeatured Image block source: content image, ACF, or Meta Box (Image Source, Pro)
WooCommerceCart, customer history, product context (Integrations → E-commerce)
Integration conditionsEDD (cart, customer, download ID / default·bundle type), AffiliateWP (referral visit, affiliate account, earnings), LearnDash, LifterLMS, Sensei, Fluent Forms, Fluent Booking (Integrations categories; only when that plugin is installed and active)
ACF / Meta Box fieldsPro field conditions on Integrations → Developer
WP FusionCRM tags (has / has all / has not), lists, and CRM logged-in (Integrations → CRM)

Pro Query Conditions

Advanced block-level query conditions (cookies, ACF, Meta Box, referral URL, WooCommerce customer history, EDD customer/download, AffiliateWP referral/affiliate/earnings, WP Fusion tags/lists/CRM logged-in, etc.) require Aegis Pro. See Query Conditions.

Page-Level Conditions

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()).

FieldExtra
Page / Post TypeAlways available (this is the current post type, not the Visibility Page Type extra)
User / Logged-inUser → User Status (is / is not)
User RoleUser → User Role (is / is not; site role list)
User CapabilityUser → User Capability (is / is not; typed slug such as edit_posts)
Page / URLVisibility → Advanced Location (Pro)
Query ParameterVisibility → URL Query String
WP Fusion TagIntegrations → 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 ListIntegrations → 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.

Next Steps

Code Snippets

Admin: Aegis → Code Snippets (admin.php?page=aegis-snippets)

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.

TypeRuns asDefault locations
Functions (PHP)Included like functions.php (requires PHP opt-in)Everywhere, frontend, admin, login, or a custom injection hook
ContentHTML, or mixed PHP + HTML when PHP is enabledSite header, body open, footer, before/after content, shortcode, or a custom hook
CSSEnqueued stylesheetFrontend, admin, login, or block editor
JavaScriptEnqueued scriptFrontend/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.

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:

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.

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.

SettingDescription
PHP snippetsMaster switch for PHP snippet execution
Auto Safe Mode on fatal errorEnable Safe Mode automatically when a PHP snippet fatals
Enable Safe ModeDisable all snippets and hook pattern output site-wide
Safe Mode URLSecret ?aegis_safe_mode=TOKEN link that turns Safe Mode on without logging in. Copy and Regenerate sit next to the URL.
AEGIS_DISABLE_SNIPPETSdefine( '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.

Next Steps

Visibility Presets

What You See

Aegis → Presets.

The screen uses the shared Aegis admin layout:

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.

See Visibility Presets (Pro).

Next Steps

Injection Preview

Enabling Preview

Navigate to Aegis → Code Snippets → Settings.

SettingDescription
Show hook positionsHighlight registered hook locations on the frontend
Show snippet positionsHighlight active snippet injection points
Admin bar shortcutsAdd 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.

ItemLabel
Parent1 Position / n Positions — enabled hook patterns + enabled snippets. Tooltip: Aegis Position / Aegis Positions. Links to Aegis → Code Snippets.
Hooks1 Hook / n Hooks with (On) or (Off). Tooltip: Show/Hide hook positions.
Snippets1 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.

Next Steps

Hook Patterns

What You See

Aegis → Hooks.

The screen uses the shared Aegis admin layout:

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.

Conditions Always 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).

See Hook Patterns Pro.

Injection Location Catalog

The free plugin Injection\LocationRegistry catalogs attach points including:

Snippets attach to any enabled location in this catalog.

Framework-Fired Theme Hooks

The Aegis framework fires these hooks automatically (see Theme Hook Patterns):

Fluent Forms Integration Hooks

When Aegis → Integrations → Forms → Fluent Forms is on, IntegrationInjector bridges:

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):

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):

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):

Catalog labels: Before video block, After video block.

Ninja Forms Integration Hooks

When Aegis → Integrations → Forms → Ninja Forms is on, IntegrationInjector bridges:

Both actions receive $form_id. Catalog labels: Before Ninja Form, After Ninja Form.

bbPress Integration Hooks

When Aegis → Integrations → Community → bbPress is on, IntegrationInjector bridges:

Catalog labels: Before bbPress forum, After bbPress forum, Before bbPress topic, After bbPress topic.

Co-Authors Plus Integration Hooks

When Aegis → Integrations → Content → Co-Authors Plus is on, IntegrationInjector wraps (priority 99):

Catalog labels: Before post author / Co-Authors block, After post author / Co-Authors block.

LearnDash Integration Hooks

When Aegis → Integrations → LMS → LearnDash 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:

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:

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.

Next Steps

SEO Schema Delegation

Supported SEO Plugins

PluginIntegration toggleAdapter
Rank MathAegis → Integrations → Rank MathSeo\Adapters\RankMathAdapter
Yoast SEOIntegrationsSeo\Adapters\YoastAdapter
All in One SEOIntegrationsSeo\Adapters\AioseoAdapter
SEOPressIntegrationsSeo\Adapters\SeopressAdapter
The SEO Framework(no UI toggle)Seo\Adapters\TsfAdapter (code only)

Delegatable Schema Types

When delegation is enabled for an active SEO plugin:

Schema typeSource blocks
FAQAccordion / FAQ blocks
EventEvent blocks
Local BusinessMap / business blocks
VideoVideo blocks
Video SitemapAegis Pro only

How It Works

Schema delegation settings.

  1. 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.
  2. 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.
  3. When delegation is active, the plugin SEO Manager suppresses duplicate schema from Aegis blocks.
  4. 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.

Aegis delegates breadcrumb schema to the active SEO plugin while supporting the native WordPress Core Breadcrumbs block (core/breadcrumbs):

Developer Filter Hooks

Each SEO adapter exposes a filter hook to allow custom modification of schema data before it is returned:

SEO PluginFilter HookParametersDescription
All in One SEOaegis_aioseo_schema_output(array $schema)Filters the AIOSEO schema output graph array
Rank Mathaegis_rank_math_json_ld(array $data, mixed $context)Filters the Rank Math JSON-LD array
Yoast SEOaegis_yoast_schema_graph(array $graph, mixed $context)Filters the Yoast SEO schema graph array
SEOPressaegis_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.

Next Steps

General Settings

Settings on This Page

Aegis → Settings.

Setting groupDescription
DataDelete 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:

GroupContents
conditional_logicConditionals feature toggles
integrationsIntegration toggle states (aegis_integrations)
blocksBlock feature toggles
generalGeneral settings (aegis_settings)
analyticsConnectors 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:

SettingDefaultDescription
Delete data on uninstallOffWhen 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.

Next Steps

Performance

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.

LocationScope
Aegis → Performance → WordPressWordPress core script cuts, head/API cleanup, and emoji scripts (Pro)
Aegis → Performance → WordPress → LoadingSpeculative loading mode and eagerness
Aegis → Performance → WordPress → SchedulingWhether page views start WP-Cron, and the scheduler status
Aegis → Performance → WordPress → HousekeepingRevisions to keep, autosave interval, trash retention
Aegis → Performance → Core BlocksEmbed facades, Query Loop Pro gate
Aegis → Performance → WooCommerceCart fragments, non-store assets, password strength meter. Shown only while WooCommerce is active
Aegis → Blocks → Slider → Lazy LoadingSlider image lazy-load (Pro per-block Splide controls)
Aegis → Connectors → BunnyCDNBunnyCDN credentials and stream features

WordPress

Enable at Aegis → Performance → WordPress (#wordpress):

ToggleDefaultEffect
Disable oEmbed ScriptOffRemoves wp-embed and oEmbed discovery on the frontend
Disable Dashicons for GuestsOffStops dashicons CSS for logged-out visitors
Disable Frontend HeartbeatOffDequeues Heartbeat scripts for guests on the frontend
Disable XML-RPCOffSets xmlrpc_enabled to false and removes the X-Pingback header (site-wide, including xmlrpc.php)
Remove RSD LinkOffRemoves Really Simple Discovery from wp_head
Remove ShortlinkOffRemoves shortlink from wp_head and the Link response header
Remove Generator TagOffRemoves the WordPress generator meta tag and feed generator output
Remove REST API LinksOffRemoves REST discovery links from wp_head/headers (does not disable the REST API)
Remove Adjacent Posts LinksOffRemoves previous/next post rel links from wp_head
Remove Emoji ScriptsOffStrips emoji detection scripts, styles, DNS prefetch, feeds, and TinyMCE emoji on frontend and admin
Disable Random Content RedirectOffTurns 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):

ToggleDefaultEffect
Query Loop PerformanceOffMaster 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 FacadesOffClick-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.

ToggleDefaultEffect
Disable Cart FragmentsOffDequeues 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 ElsewhereOffDequeues WooCommerce scripts/styles on non-shop/product/cart/checkout/account pages
Limit Password Strength MeterOffLoads 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.

SettingWhat it does
High-Performance Order StorageShows 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 AdminRemoves 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.

SettingChoicesNotes
Speculative Loading ModeWordPress default, Prefetch, Prerender, OffPrefetch 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 EagernessWordPress default, Conservative, Moderate, EagerConservative 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:

  1. 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).
  2. Wait until Server scheduler last seen shows a recent time.
  3. 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.

SettingRangeWhat it does
Post Revisions to Keep0 to 1000The 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 3600How often the block editor and the classic editor save a draft copy. Empty keeps 60
Empty the Trash After (days)1 to 3650How 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:

KeySection
perf_disable_wp_embedWordPress
perf_disable_dashiconsWordPress
perf_disable_frontend_heartbeatWordPress
perf_disable_xmlrpcWordPress
perf_remove_rsd_linkWordPress
perf_remove_shortlinkWordPress
perf_remove_generatorWordPress
perf_remove_rest_api_linksWordPress
perf_remove_adjacent_postsWordPress
perf_remove_emojiWordPress
perf_disable_random_redirectWordPress
embed_facadesCore Blocks
query_loop_performanceCore Blocks
perf_woo_disable_cart_fragmentsWooCommerce
perf_woo_disable_assets_elsewhereWooCommerce
perf_woo_disable_password_strengthWooCommerce

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.

Next Steps

WooCommerce Checkout

Requirements

  1. Aegis theme active (required — plugin is theme-only)
  2. WooCommerce active
  3. Aegis → Integrations → E-commerce → WooCommerce integration enabled

WooCommerce Block Patterns

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.

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

  1. Enable WooCommerce integration at Aegis → Integrations → E-commerce.
  2. In the Site Editor, assign the Multi-Step Checkout template to your checkout page.

See Theme WooCommerce Integration for template details.

Injection Hooks

When WooCommerce integration is active, the plugin bridges these snippet/hook locations:

Next Steps

Plugin Patterns

Pattern Directories

Patterns added by the plugin in the block inserter.

DirectoryPatternsWhen registered
patterns/slider/Slider demonstration patternsSlider block implied on
patterns/modal/Modal starters (modal-video, modal-newsletter, modal-contact, modal-cookie-consent)Modal block enabled (config/patterns.php)
patterns/contact/Contact form layouts (includes Map block)Plugin + theme active
patterns/author/Co-authors layout patternsCo-Authors Plus active and the integration on
patterns/woocommerce/Shop templates, product layouts, WC headers, checkout/cart patternsWooCommerce active
patterns/wishlist/Wishlist page pattern (template-page-wishlist)WooCommerce + TI Wishlist active

Dependency Matrix

Pattern setRequires
SliderAegis theme + Aegis plugin + Slider extras implied on
Modal patternsAbove + Modal block enabled
Map contact patternsAbove + 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 theme templates/ 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.

PatternSlugUse
Book Buy Boxproduct-book-buySingle product buy box for a book
Related Novelsproduct-book-relatedRelated products under a book
Bookshop Catalog (Shop)product-archive-liveLive product grid
Selected Works (Shop)product-works-liveLive product grid
Author’s Desk (Shop)product-desk-liveLive product grid
Journal Edition (Shop)product-journal-liveLive product grid
Journal Shop Sidebarsidebar-journal-shopShop sidebar
Catalog Store Headerheader-store-catalogStore header with search, customer account, and mini cart
Bookshop Store Headerheader-store-bookshopStore header with search, customer account, and mini cart
Author Shop Pagepages-author-storeFull page
Book Product Pagepages-book-storeFull page
Journal Shop Pagepages-journal-storeFull page
Coastline Essay, Shoppages-essay-storeFull page
Bookshop, Shoppages-bookshop-storeFull page
Archival Checkout, Shoppages-checkout-storeFull page
Bindery Confirmation, Shoppages-confirmation-storeFull page

CommercePatternRegistrar

src/Patterns/CommercePatternRegistrar.php (config/woocommerce-patterns.php):

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.

Next Steps

FAQ

General

Do I need the Aegis theme?

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?

ProductIncludes
Aegis themeFSE templates, ~200 generic theme patterns, style variations, design system, six custom blocks (countdown, slider, slide, toggle, toggle-content, related-posts), core/video framework enhancements, WooCommerce FSE templates
Aegis PluginMap, Modal, admin dashboard, block toggles, snippets, conditionals, integrations, analytics, core/video editor extensions, gated WooCommerce/TI Wishlist block patterns
Aegis ProHook 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.

Performance

Where are performance settings?

Aegis → Performance — oEmbed, dashicons, heartbeat, XML-RPC, RSD/shortlink/generator/REST discovery/adjacent-posts cleanup, embed facades, Query Loop Pro gate, WooCommerce cuts (classic cart fragments / assets / password meter), and emoji scripts (Pro).

Slider lazy-load stays at Aegis → Blocks → Slider. BunnyCDN is at Aegis → Connectors → BunnyCDN.

See Performance for details. Pro per-block Query Loop options are documented in Query Performance (Pro).

Are performance toggles included in export?

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.

Next Steps

Code Snippets Reference

Where to Put Snippets

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.

The free Aegis plugin has a built-in Code Snippets screen:

  1. Go to Aegis → Code Snippets → Settings and turn on PHP Enabled.
  2. Add a snippet and choose the Functions (PHP) type.
  3. 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.

A Site-Specific Plugin

Create wp-content/plugins/my-site-snippets/my-site-snippets.php:

Copied!
PHP
<?php/** * Plugin Name: My Site Snippets * Description: Custom code for this site. */defined( 'ABSPATH' ) || exit;// Paste snippets below.

Activate My Site Snippets under Plugins, then paste each snippet at the end of the file. Any other code snippets plugin works too.

Filters must return a value. Test on a staging site first.


Admin Screens

Add a Tab to the Aegis Admin

aegis_admin_tabs — the tabs across the top of every Aegis screen, as key => [ label, url, priority ].

Copied!
PHP
add_filter( 'aegis_admin_tabs', function ( array $tabs ): array { $tabs['site-health'] = array( 'label' => 'Site Health', 'url' => admin_url( 'site-health.php' ), 'priority' => 95, ); return $tabs;} );

Reorder the Tabs

aegis_admin_tab_priorities — default sort weights per tab key (lower comes first). Defaults: dashboard 0, blocks 10, modals 20, hook-patterns 30, snippets 40, visibility-presets 45, conditional-logic 50, integrations 60, connectors 65, performance 70, general-settings 90, license 100.

Copied!
PHP
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).

HookTypeArgumentsUse
aegis_general_settings_sectionsactionRenderer $rendererPrint your own section inside the Aegis → Settings form, so it saves with the rest
aegis_admin_page_descriptionfilterstring $description, string $tab_keyThe description under an admin tab’s title
aegis_admin_settings_urlfilterstring $url, string $pageThe Settings link in the top bar. Return an empty string for none
aegis_admin_docs_urlfilterstring $url, string $pageThe Documentation link in the top bar. Default: https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/
aegis_dashboard_addonsfilterarray $addonsAdd 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
Copied!
PHP
add_filter( 'aegis_admin_docs_url', function ( string $url, string $page ): string { return 'my-addon' === $page ? 'https://example.com/docs/my-addon/' : $url;}, 10, 2 );add_filter( 'aegis_dashboard_addons', function ( array $addons ): array { $addons['my-addon'] = array( 'label' => 'My Add-on', 'icon' => 'admin-generic', 'summary' => '3 items', 'url' => admin_url( 'admin.php?page=my-addon' ), 'action' => 'Open My Add-on', 'settings_url' => admin_url( 'admin.php?page=my-addon&tab=settings' ), ); return $addons;} );

Extend the Conditionals and Connectors Screens

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"> <?php echo \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.

Copied!
PHP
add_filter( 'aegis_injection_locations', function ( array $locations ): array { $locations['theme']['my_theme_after_hero'] = array( 'label' => 'After hero (custom)', 'scope' => 'frontend', 'requires' => null, ); return $locations;} );

Your theme or plugin must call do_action( 'my_theme_after_hero' ) where the content should appear.

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>';} );
Location hooksArguments
aegis_{before,after}_woocommerce_checkout, aegis_{before,after}_woocommerce_cartnone
aegis_{before,after}_edd_downloadnone
aegis_{before,after}_affwp_dashboardnone
aegis_{before,after}_learndash_{course,lesson,topic}$post_id, $course_id, $user_id
aegis_{before,after}_learndash_quiz$quiz_id, $course_id, $user_id
aegis_learndash_focus_{header,footer}$course_id
aegis_{before,after}_llms_{course,lesson}$post_id
aegis_{before,after}_sensei_{course,lesson,quiz}$post_id
aegis_{before,after}_fluentformnone
aegis_{before,after}_gform$form
aegis_{before,after}_nf_form$form_id
aegis_{before,after}_bbpress_{forum,topic}none
aegis_{before,after}_post_authornone
aegis_{before,after}_map_blocknone (Google Maps connector on)
aegis_{before,after}_video_blocknone (BunnyCDN connector on)

Hooks with arguments need the argument count:

Copied!
PHP
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.

Copied!
PHP
add_filter( 'aegis_map_google_libraries', function ( array $libraries, array $attributes ): array { $libraries[] = 'places'; return $libraries;}, 10, 2 );

SEO and Schema

Change Co-Author Schema

aegis_coauthor_schema_person — one Person object per co-author in the article schema. Receives the person array and the co-author object.

Copied!
PHP
add_filter( 'aegis_coauthor_schema_person', function ( array $person, $coauthor ): array { $job = get_user_meta( $coauthor->ID, 'job_title', true ); if ( $job ) { $person['jobTitle'] = $job; } return $person;}, 10, 2 );

Add Author Schema to More Post Types

coauthors_supported_post_types (from Co-Authors Plus) — also controls which post types get Aegis author schema.

Copied!
PHP
add_filter( 'coauthors_supported_post_types', function ( array $post_types ): array { $post_types[] = 'case_study'; return $post_types;} );

Change Schema From Your SEO Plugin

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 ( $graph as $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.


Building Assets

Commands

Copied!
Shell
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

OutputSource
Map, Modal block assetsHand-maintained in src/Blocks/map/ and src/Blocks/modal/ (index.js, view.js, style.css)
Admin dashboardassets/admin/src (Studio enqueue) / assets/admin/build (webpack output)
Video editor extensionassets/editor/ (extends core/video)

The six TypeScript blocks (countdown, slider, slide, toggle, toggle-content, related-posts) are built in this plugin with npm run build:blocks.

Theme Blocks

Until the theme release that removes them, the theme also builds its own copies in the theme repository:

Copied!
Shell
cd wp-content/themes/aegisnpm run build

See Theme Building Assets.

Compiled Assets in Git

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/build and 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.

Included in zipExcluded
aegis.php, uninstall.php, src/, config/, patterns/, templates/, languages/, public/, compiled assetsCI configuration, docs/, Node/Composer manifests, vendor/, admin/editor sources, tests/tools

.gitattributes export-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:

Next Steps

File Structure

Top-Level Structure

Copied!
Directory tree
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/

DirectoryWhen 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().

src/ Modules

ModuleRole
Admin/Menu, tabs, renderer, AJAX page loader, updater (plugin updates)
Analytics/Tracker, Connectors panel
Blocks/Map and Modal registration, aegis_blocks settings (all block toggles + Performance keys), VideoSchema
Connectors/Connectors admin page (BunnyCDN section; enqueues assets/js/bunnycdn-settings.js)
Conditionals/Evaluator, post-content renderer, Smart Logic, Conditionals admin, IntegrationsPanel (plugin extras on Integrations)
Hooks/Hook patterns admin
Injection/Hook injection, preview (including Co-Authors Plus wrap of core/post-author and co-authors/block)
CoAuthors/Multi-author core/post-author* replace, optional Author Schema extra
Integrations/Third-party toggles, WPFusion.php, ACF.php, MetaBox.php, CodeBlockPro.php, SyntaxHighlighting.php, AffiliateWP.php, EasyDigitalDownloads.php, FluentBooking.php, FluentForms.php, GravityForms.php, NinjaForms.php, LearnDash.php, LifterLMS.php, SenseiLMS.php, AllInOneSEO.php, RankMath.php, SEOPress.php, Yoast.php, BunnyCDN.php (Connectors SaaS helper), WooCommerce.php (is_plugin_active() / is_enabled()), and WooCommerce/MultiStepCheckout.php
Map/ / Modal/Map/Modal blocks; Static Maps style encoding (Map/Styles.php); Modals instance dashboard; shortcode (Modal/Shortcode.php)
License/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:

Next Steps

Architecture

Bootstrap

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:

Copied!
Directory tree
config/coauthors.phpconfig/map.phpconfig/analytics.phpconfig/blocks.php / blocks-registrar.phpconfig/modal.phpconfig/injection.php (requires injection-integrations.php)config/hooks.phpconfig/snippets.phpconfig/visibility-presets.phpconfig/license.phpconfig/conditionals.php / conditionals-renderer.phpconfig/integrations.phpconfig/connectors.phpconfig/seo.phpconfig/admin.phpconfig/admin-shell.phpconfig/editor.phpconfig/performance.phpconfig/woocommerce.phpconfig/patterns.phpconfig/woocommerce-patterns.phpconfig/activation-redirect.php

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

Module Overview

ModuleResponsibility
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()).
Connectors/Connectors admin (BunnyCDN, Maps, Analytics panels)
General/General settings admin (data removal)
Hooks/Hook patterns admin (instance list)
VisibilityPresets/Visibility presets admin (library list; CRUD requires Pro)
Injection/LocationRegistry, Preview, IntegrationInjector (including Co-Authors Plus wrap of core/post-author and co-authors/block)
CoAuthors/Multi-author core/post-author* replace, optional Author Schema extra
Integrations/Registry, AdminPage, Settings, Notices, WPFusion (catalog pickers, list membership, CRM login, plugin detection), ACF (plugin detection and parent gating, including Secure Custom Fields), MetaBox (RWMB_Loader / rwmb_meta(), including AIO), CodeBlockPro (CBPRouter / kevinbatdorf/code-block-pro detection), SyntaxHighlighting (Syntax_Highlighting_Code_Block\PLUGIN_VERSION / boot()), AffiliateWP (Affiliate_WP / affiliate_wp() / AFFILIATEWP_VERSION), EasyDigitalDownloads (Easy_Digital_Downloads / EDD() / EDD_VERSION), FluentBooking (FluentBooking.php helper: FLUENT_BOOKING_VERSION / FluentBooking\App\App, plus is_enabled()), FluentForms (FluentForms.php helper: FLUENTFORM / FLUENTFORM_VERSION / FluentForm\App\Modules\Form\Form, plus is_enabled()), GravityForms (GravityForms.php helper: GFForms / GFAPI / GF_MIN_WP_VERSION / gravity_form(), plus is_enabled()), NinjaForms (NinjaForms.php helper: Ninja_Forms / NF_PLUGIN_VERSION / NF_VERSION, plus is_enabled()), LearnDash (LearnDash.php helper: LEARNDASH_VERSION / SFWD_LMS / LEARNDASH_LMS_PLUGIN_DIR / learndash_init(), plus is_enabled()), WooCommerce (WooCommerce.php helper: WooCommerce / WC() / WC_VERSION, plus is_enabled()), WooCommerce\MultiStepCheckout (assets on the multi-step template when the integration is on)
Map/Map block, Google Maps connectors panel, Static Maps style encoding
Modal/Modal block, instance scanner, Modals admin
Seo/SEO Manager and plugin adapters
Settings/Repository, Controller (AJAX export/import), Migration
Snippets/Manager, Storage, Loader, Executors
Patterns/CommercePatternRegistrar — gated WooCommerce and wishlist patterns
Performance/FrontendOptimizations, Performance admin page
License/AdminPage: free License / Get Pro screen (aegis-license), registered only when Aegis Pro is inactive
Utilities/UserAgent: device and browser matching for conditional logic rules

CommercePatternRegistrar

See Plugin Patterns — CommercePatternRegistrar for dependency checks, init priority, and slug registration.

Block Registration Model

LayerRegisters
ThemeNone once the removal release ships. Until then the theme registers the six blocks below only when the plugin has not.
Pluginaegis/countdown, slider, slide, toggle, toggle-content, related-posts (Blocks\ThemeBlocksRegistrar), aegis/map, aegis/modal (+ admin, core/video editor extensions)
Proaegis/tabs, tab, image-compare (src/Blocks/image-compare); attribute extensions on theme blocks, plugin blocks, core/video, and core/query

Video is core/video, not aegis/video.

Framework Dependency

The plugin reads and writes settings via Settings\Repository. The Aegis framework (vendor/aegis/framework in the theme) reads these settings for:

Relationship to Theme and Pro

LayerRole
ThemeRegisters six custom blocks, FSE assets, framework bootstrap, core/video enhancements
Free pluginSettings, admin, map/modal, snippets, conditionals, analytics, core/video editor scripts, gated commerce patterns
ProHook pattern CPT, video stack on core/video, query pro on core/query, Pro-only blocks, block extensions, license

Next Steps