Framework Injection Actions

Fired by vendor/aegis/framework CoreBlocks:

HookLocation
aegis_before_{slug}Before template part {slug} (e.g. aegis_before_header)
aegis_after_{slug}After template part {slug}
aegis_before_contentBefore main post content block
aegis_after_contentAfter main post content block

See Hook Patterns (Theme Injection Hooks) for usage examples.

Plugin Integration Actions

Fired when integrations are enabled (Aegis Dash IntegrationInjector):

HookContext
aegis_before_woocommerce_checkout / aegis_after_woocommerce_checkoutWooCommerce checkout
aegis_before_woocommerce_cart / aegis_after_woocommerce_cartWooCommerce cart
aegis_before_edd_download / aegis_after_edd_downloadEDD
aegis_before_affwp_dashboard / aegis_after_affwp_dashboardAffiliateWP
aegis_before_llms_course / aegis_after_llms_courseLifterLMS course
aegis_before_llms_lesson / aegis_after_llms_lessonLifterLMS lesson
aegis_before_sensei_course / aegis_after_sensei_courseSensei course
aegis_before_sensei_lesson / aegis_after_sensei_lessonSensei lesson
aegis_before_sensei_quiz / aegis_after_sensei_quizSensei quiz
aegis_before_fluentform / aegis_after_fluentformFluent Forms
aegis_before_gform / aegis_after_gformGravity Forms
aegis_before_nf_form / aegis_after_nf_formNinja Forms
aegis_before_learndash_course / aegis_after_learndash_courseLearnDash course
aegis_before_learndash_lesson / aegis_after_learndash_lessonLearnDash lesson
aegis_before_learndash_topic / aegis_after_learndash_topicLearnDash topic
aegis_before_learndash_quiz / aegis_after_learndash_quizLearnDash quiz
aegis_before_bbpress_forum / aegis_after_bbpress_forumbbPress forums loop
aegis_before_bbpress_topic / aegis_after_bbpress_topicbbPress single topic
aegis_before_post_author / aegis_after_post_authorcore/post-author and co-authors/block
aegis_before_map_block / aegis_after_map_blockMap block
aegis_before_video_block / aegis_after_video_blockcore/video when Connectors โ†’ BunnyCDN is on

Theme Integration Actions

Fired by the theme framework itself (vendor/aegis/framework/src/Integrations/LearnDash.php), not by Aegis Dash. Each fires once per request.

HookArgumentsContext
aegis_learndash_focus_headerint $course_idTop of the LearnDash Focus Mode layout
aegis_learndash_focus_footerint $course_idBottom of the LearnDash Focus Mode layout

Full catalog: Aegis Dash Hook Patterns.

Admin Actions (Plugin)

HookTiming
aegis_admin_before_blocks_pageBefore Blocks admin render
aegis_admin_before_modals_pageBefore Modals admin render
aegis_admin_before_hooks_pageBefore Hooks admin render
aegis_admin_before_visibility_presets_pageBefore Visibility Presets admin render
aegis_admin_before_snippets_pageBefore Snippets admin render
aegis_admin_before_integrations_pageBefore Integrations admin render
aegis_admin_before_connectors_pageBefore Connectors admin render
aegis_admin_before_conditionals_pageBefore Conditionals admin render
aegis_admin_before_general_settings_pageBefore Settings admin render
aegis_admin_before_license_pageBefore License admin render (Pro)
aegis_admin_conditionals_sectionsExtra Conditionals admin sections
aegis_connectors_nav_itemsConnectors sidebar nav
aegis_connectors_maps_sectionGoogle Maps settings section
aegis_connectors_analytics_sectionAnalytics settings section

Admin Filters (Plugin / Pro)

FilterDescription
aegis_admin_tabsRegister admin menu tabs
aegis_admin_tab_prioritiesTab sort order
aegis_injection_locationsInjection location catalog

Pro Hook Pattern Filters

FilterDescription
aegis_available_hook_patternsCustom hook pattern options
aegis_hook_patterns_limitMax patterns loaded (default 100)
aegis_hook_pattern_contentFilter rendered hook pattern content

Framework Filters

FilterDescription
aegis_load_all_scriptsForce-load all framework scripts
aegis_load_all_stylesForce-load all framework styles
aegis_system_fontsSystem font definitions
aegis_dark_modeEnable or disable dark mode (default true). Returning false also removes the editor light/dark preview toggle
aegis_dynamic_custom_propertiesDynamic CSS custom properties
aegis_patternsPattern categories
aegis_pattern_dirsPattern scan directories
aegis_template_tagsTemplate tag output
aegis_template_tag_post_fieldsPost fields that {field} template tags can print. Argument: string[] $fields. Defaults to public fields only: title, excerpt, dates, author, status, slug, parent, post type, and comment count (TemplateTags.php)
aegis_query_protected_meta_keys_-prefixed meta keys that Query Loop meta filters and meta sorting accept. Argument: string[] $keys. Default: WooCommerce product keys (_price, _regular_price, _sale_price, _stock, _wc_average_rating, _wc_review_count) (QueryEnhancements.php)
aegis_words_per_minuteReading time calculation (default 200)
aegis_comments_form_title_tagComments form heading tag
aegis_placeholder_svgPlaceholder SVG markup
aegis_format_inline_jsInline JS formatting
aegis_default_modeDefault color mode, 'light' or 'dark'. Arguments: string $mode, array $global_settings. The default is 'dark' when global settings define custom.lightMode, otherwise 'light'. Also sets the starting mode of the editor preview toggle (DarkMode.php)
aegis_inline_css / aegis_inline_jsFinal inline CSS or JS string. Arguments: string $string, string $template_html, bool $load_all, object $instance. The prefix is the asset handle, which is the theme folder name (AssetsTrait.php)
aegis_template_htmlCollected front-end template, template part, and post markup that decides which conditional assets load. Argument: string $markup (FrontendContentContext.php)
aegis_editor_dataData passed to the framework editor script as window.aegis. Argument: array $data (EditorAssets.php)
aegis_query_enhancements_dataPost types, taxonomies, meta operators, meta types, and order-by options for the Query enhancements panel. Argument: array $data (QueryEnhancements.php)
aegis_icon_setsRegistered icon sets. Argument: array $icon_sets (set name โ‡’ folder path) (vendor/aegis/icons/src/Icon.php)

Theme Filters

FilterDescription
aegis_dynamic_template_part_slugSwap a core/template-part slug at render time when an alternate parts/{slug}.html exists. See Dynamic Template Parts.
aegis_theme_update_repositoryGitHub repository (owner/name) the theme checks for updates. Default aegiswp/aegis. Argument: string $repository (src/Admin/GitHubUpdater.php). See Updating.
aegis_companion_package_urlZip URL Aegis Dash notice installs from. Default: the aegis-dash.zip package of the latest Aegis Dash release. Argument: string $package (src/Admin/CompanionNotice.php). Use it to pin a release or a mirror.

Pro Filters

FilterDescription
aegis_font_familiesFont families for theme.json
aegis_pro_analytics_retention_daysVideo analytics retention
aegis_pro_computed_valueBlock Bindings computed values
aegis_tabs_tab_visibilityTab block visibility

Block Filters (Examples)

FilterDescription
aegis_related_posts_queryRelated Posts WP_Query args. Arguments: array $query_args, int $post_id, string $context (the context gets a -fallback suffix for the fallback query, and is block-preview in the editor)

Usage Example

Copied!
PHP
add_action( 'aegis_after_content', function () { if ( is_single() ) { echo do_blocks( '<!-- wp:pattern {"slug":"cta-newsletter"} /-->' ); }} );

Next Steps