Website LLMs.txt 8.6.3 has 7 actions and 22 filters, read directly from its source code on Nov 17, 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 Website LLMs.txt fires an action
add_action( 'wpml_switch_language', function( $lang ) {
// Your code runs here.
}, 10, 1 );
// Change a value Website LLMs.txt is about to use
add_filter( 'llms_access_readers', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
llms_access_readers
filter/** * Filter the tier 1 reader registry. ADDITIONS ONLY. */ apply_filters( 'llms_access_readers', array() ); -
llms_generator_taxonomies
filter/** * Filter which taxonomies are written for a post. */ apply_filters( 'llms_generator_taxonomies', $taxonomies, (int) $data->post_id, $data->type ); -
get_llms_generator_settings
filterapply_filters( 'get_llms_generator_settings', [] ); -
get_llms_content
filterapply_filters( 'get_llms_content', '' ); -
wpml_switch_language
actiondo_action( 'wpml_switch_language', $lang ); -
apply_filters( 'llms_handle_post_update_replace_data', $replace_data, $post ); -
apply_filters( 'llms_handle_post_update_replace_format', $replace_format, $post ); -
wpml_element_language_code
filterapply_filters( 'wpml_element_language_code', null, [ 'element_id' => $post->ID, 'element_type' => 'post_' . $post->post_type ] ); -
wpseo_cache_clear_sitemap
actiondo_action( 'wpseo_cache_clear_sitemap' ); -
get_the_excerpt
filterapply_filters( 'get_the_excerpt', $post->post_excerpt, $post ); -
llms_clear_seo_caches
actiondo_action( 'llms_clear_seo_caches' ); -
do_action( 'llms_clear_seo_caches_rank_math' ); -
do_action( 'llms_content_cleaned_to_empty', $original_content ); -
apply_filters( 'llms_drop_dynamic_block_content', true, $name ); -
llms_dynamic_block_allowlist
filterapply_filters( 'llms_dynamic_block_allowlist', array() ); -
llms_gating_blocks
filterapply_filters( 'llms_gating_blocks', $blocks ); -
llms_gating_shortcodes
filterapply_filters( 'llms_gating_shortcodes', $tags ); -
apply_filters( 'llms_generator_get_post_meta_description', false, $post ); -
apply_filters( 'llms_generator_get_site_meta_description', $description ); -
llms_generator_post_content
filterapply_filters( 'llms_generator_post_content', $content, $post ); -
llms_include_capability
filterapply_filters( 'llms_include_capability', 'manage_options', (int) $post_id ); -
apply_filters( 'llms_post_is_publicly_readable', true, $id, isset($posts[$id]) ? $posts[$id]['post_type'] : '' ); -
llms_update_llms_file_cron
actiondo_action( 'llms_update_llms_file_cron' ); -
schedule_updates
actiondo_action( 'schedule_updates' ); -
the_content
filterapply_filters( 'the_content', $description ); -
wpml_current_language
filterapply_filters( 'wpml_current_language', null ); -
wpml_default_language
filterapply_filters( 'wpml_default_language', null ); -
wpml_permalink
filterapply_filters( 'wpml_permalink', get_permalink($post->ID), $language_code ); -
wpml_setting
filterapply_filters( 'wpml_setting', null, 'hidden_languages' );
Generated from Website LLMs.txt's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: