Website LLMs.txt icon
AI Tools

Website LLMs.txt hooks reference

  • By Ryan Howard
  • v8.6.3
  • Updated

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.

functions.phpyour child theme
// 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

  • includes/class-llms-access.php line 1396
    /**
     * Filter the tier 1 reader registry. ADDITIONS ONLY.
     */
    apply_filters( 'llms_access_readers', array() );
  • includes/class-llms-generator.php line 812
    /**
     * Filter which taxonomies are written for a post.
     */
    apply_filters( 'llms_generator_taxonomies', $taxonomies, (int) $data->post_id, $data->type );
  • admin/admin-page.php line 41 · used in 12 places
    apply_filters( 'get_llms_generator_settings', [] );
  • admin/admin-page.php line 40 · used in 5 places
    apply_filters( 'get_llms_content', '' );
  • includes/class-llms-generator.php line 437 · used in 4 places
    do_action( 'wpml_switch_language', $lang );
  • includes/class-llms-generator.php line 1362 · used in 2 places
    apply_filters( 'llms_handle_post_update_replace_data', $replace_data, $post );
  • includes/class-llms-generator.php line 1363 · used in 2 places
    apply_filters( 'llms_handle_post_update_replace_format', $replace_format, $post );
  • includes/class-llms-generator.php line 431 · used in 2 places
    apply_filters( 'wpml_element_language_code', null, [ 'element_id' => $post->ID, 'element_type' => 'post_' . $post->post_type ] );
  • includes/class-llms-generator.php line 1716 · used in 2 places
    do_action( 'wpseo_cache_clear_sitemap' );
  • includes/class-llms-generator.php line 1194
    apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
  • includes/class-llms-core.php line 824
    do_action( 'llms_clear_seo_caches' );
  • includes/class-llms-generator.php line 1717
    do_action( 'llms_clear_seo_caches_rank_math' );
  • includes/class-llms-content-cleaner.php line 74
    do_action( 'llms_content_cleaned_to_empty', $original_content );
  • includes/class-llms-content-sanitizer.php line 550
    apply_filters( 'llms_drop_dynamic_block_content', true, $name );
  • includes/class-llms-content-sanitizer.php line 274
    apply_filters( 'llms_dynamic_block_allowlist', array() );
  • includes/class-llms-content-sanitizer.php line 262
    apply_filters( 'llms_gating_blocks', $blocks );
  • includes/class-llms-content-sanitizer.php line 232
    apply_filters( 'llms_gating_shortcodes', $tags );
  • includes/class-llms-generator.php line 963
    apply_filters( 'llms_generator_get_post_meta_description', false, $post );
  • includes/class-llms-generator.php line 947
    apply_filters( 'llms_generator_get_site_meta_description', $description );
  • includes/class-llms-generator.php line 1309
    apply_filters( 'llms_generator_post_content', $content, $post );
  • includes/class-llms-core.php line 246
    apply_filters( 'llms_include_capability', 'manage_options', (int) $post_id );
  • includes/class-llms-access.php line 273
    apply_filters( 'llms_post_is_publicly_readable', true, $id, isset($posts[$id]) ? $posts[$id]['post_type'] : '' );
  • website-llms-txt.php line 210
    do_action( 'llms_update_llms_file_cron' );
  • includes/class-llms-generator.php line 270
    do_action( 'schedule_updates' );
  • the_content

    filter
    includes/class-llms-generator.php line 931
    apply_filters( 'the_content', $description );
  • includes/class-llms-generator.php line 1154
    apply_filters( 'wpml_current_language', null );
  • includes/class-llms-generator.php line 451
    apply_filters( 'wpml_default_language', null );
  • wpml_setting

    filter
    includes/class-llms-generator.php line 980
    apply_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: