LLM Override 1.2.3 has 13 actions and 11 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when LLM Override fires an action
add_action( 'llm_override_bot_detected', function( $ID, $bot_slug, $bot_type, $arg4 ) {
// Your code runs here.
}, 10, 4 );
// Change a value LLM Override is about to use
add_filter( 'llm_override_frontmatter', function( $frontmatter, $post ) {
// Change $frontmatter here.
return $frontmatter;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires when an AI bot is detected visiting the site. */ do_action( 'llm_override_bot_detected', $post->ID, $bot_slug, $bot_type, true ); -
/** * Fires right before the llms.txt output is returned and execution halts. */ do_action( 'llm_override_serve_llms_txt' ); -
/** * Fires on every admin page load via admin_enqueue_scripts. */ do_action( 'llm_override_admin_enqueue_assets', $hook ); -
/** * Fires after the Global Settings form on the Dashboard page. */ do_action( 'llm_override_dashboard_after_settings' ); -
/** * Fires right before the "Upgrade to Pro" upsell card. */ do_action( 'llm_override_dashboard_before_upsell' ); -
/** * Fires after the KPI cards grid on the Dashboard page. */ do_action( 'llm_override_dashboard_kpi_cards' ); -
/** * Fires to display the Parity Checker widget. Rendered via the Pro add-on. */ do_action( 'llm_override_dashboard_parity_widget' ); -
/** * Filters the YAML frontmatter array before it is joined into the output. */ apply_filters( 'llm_override_frontmatter', $frontmatter, $post ); -
/** * Fires right before execution halts after serving Markdown via ?view=raw. */ do_action( 'llm_override_intercept_request', $post, '' ); -
/** * Filters whether JSON-LD injection is enabled for a specific post. */ apply_filters( 'llm_override_jsonld_enabled', true, $post_id ); -
/** * Filters the maximum character length of the JSON-LD articleBody. */ apply_filters( 'llm_override_jsonld_max_length', 10000 ); -
/** * Filters the complete JSON-LD schema array before encoding. */ apply_filters( 'llm_override_jsonld_schema', $schema, $post_id ); -
/** * Filters the JSON-LD schema @type. */ apply_filters( 'llm_override_jsonld_type', $type, $post_id ); -
/** * Filters the llms-full.txt output lines array before it is sent. */ apply_filters( 'llm_override_llms_full_txt_lines', $lines ); -
/** * Fires after the llms.txt configuration fields stack. */ do_action( 'llm_override_llms_txt_after_fields' ); -
/** * Filters the llms.txt output lines array before it is sent. */ apply_filters( 'llm_override_llms_txt_lines', $lines ); -
/** * Fires after all Free plugin dependencies are loaded and hooks are * registered. */ do_action( 'llm_override_loaded', $this ); -
/** * Filters the complete Markdown output before it is sent to the client. */ apply_filters( 'llm_override_markdown_output', $output, $post ); -
/** * Filters the sanitized content before it enters the Markdown converter. */ apply_filters( 'llm_override_pre_convert_content', $content, $post ); -
/** * Filters the sanitized global settings array before it is saved to the * database. */ apply_filters( 'llm_override_sanitize_settings', $sanitized, $input ); -
/** * Fires after the Semantic Rules fields stack. */ do_action( 'llm_override_semantic_rules_after_fields' ); -
do_action( 'llm_override_serve_llms_full_txt' ); -
apply_filters( 'llm_override_clean_special_chars', true );
Generated from LLM Override's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: