Pitwall AI Manifest for llms.txt documentation

How to set it up, and every setting, step by step.

Hooks

Filters and actions for developers. Put them in a small plugin or your theme's functions.php.

Settings and output

FilterReceivesUse it to
ltxt_settingsthe settings arraychange settings in code
ltxt_documentllms.txt, settingsedit the finished llms.txt
ltxt_full_documentllms-full.txt, settingsedit the finished llms-full.txt
ltxt_credit_linethe credit lineword the optional credit your own way
ltxt_agency['name', 'url']change the name in the admin footer
ltxt_content_typethe Content-Type, txt or mdserve text/markdown instead of text/plain
ltxt_robots_referencetruestop the llms.txt line in robots.txt

What gets in

FilterReceivesUse it to
ltxt_can_serveallowed, post, contextthe one rule for publishing a post: manifest, pinned, markdown, index or head
ltxt_include_postinclude, postleave a post out of llms.txt
ltxt_section_postsposts, sectionreorder or change a section's posts
ltxt_is_noindexnoindex, post IDread noindex from another SEO plugin
ltxt_seo_description_keysmeta keysread descriptions from another SEO plugin
ltxt_serve_markdownallowed, postrefuse a .md copy for some posts
// Keep a members area out of everything the plugin publishes.
add_filter( 'ltxt_can_serve', function ( $allowed, $post, $context ) {
    return $allowed && ! has_term( 'members', 'category', $post );
}, 10, 3 );

Markdown

FilterReceivesUse it to
ltxt_post_markdownMarkdown, postedit a page's .md copy
ltxt_markdown_drop_classesclass namesremove more page furniture before conversion
ltxt_apply_content_filterstrue, postskip the_content filters for a post

Search API

FilterReceivesUse it to
ltxt_is_indexableindexable, postkeep a post out of the search index
ltxt_search_resultsresults, queryrerank or edit results
ltxt_client_ipthe REMOTE_ADDR addressread the visitor's address behind a proxy, for the rate limits
// Behind Cloudflare: count visitors, not Cloudflare. Only trust a header your proxy sets.
add_filter( 'ltxt_client_ip', function ( $ip ) {
    return isset( $_SERVER['HTTP_CF_CONNECTING_IP'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_CF_CONNECTING_IP'] ) ) : $ip;
} );

Structured data and Scan my site

FilterReceivesUse it to
ltxt_schemaJSON-LD data, settingsedit the Organization block
ltxt_schema_conflictsplugin namesadd an SEO plugin to the warning
ltxt_suggestionssuggestionschange what Scan my site fills in
ltxt_contact_slugspage slugshelp Scan my site find your contact page

Chat widget

FilterReceivesUse it to
ltxt_render_widgettruehide the widget on some pages
ltxt_faq_matchmatch, question, entrieschange which curated answer matches
ltxt_faq_stopwordswordschange the words curated matching ignores
ltxt_synonymsgroupsadd or change the groups of words that mean the same (lower case, no accents)
ltxt_faq_import_candidatescandidates, sourceedit what "Bring them in" finds
// No chat window on checkout pages.
add_filter( 'ltxt_render_widget', function ( $render ) {
    return $render && ! ( function_exists( 'is_checkout' ) && is_checkout() );
} );

AI answers

FilterReceivesUse it to
ltxt_chat_system_promptthe instructions, settingsadd to or change the assistant's instructions, for AI answers
ltxt_ai_client_model_preference[], settingssuggest models to WordPress AI, in order: model IDs, or [ provider ID, model ID ] pairs
// WordPress AI: try one model first, then GPT-5 from OpenAI.
add_filter( 'ltxt_ai_client_model_preference', function () {
    return array( 'a-model-id', array( 'openai', 'gpt-5' ) );
} );

The list is a preference, not a requirement: when none of the models is available, WordPress answers with any model its providers offer that can. Empty, the default, leaves the choice to WordPress.

Actions

ActionReceivesFires
ltxt_rebuiltthe cache, with both documentsafter llms.txt (and llms-full.txt) are rebuilt
ltxt_index_completenothingwhen the search index has finished a full rebuild

Help

Stuck on something in Pitwall AI Manifest for llms.txt?

Write to us. The people who build the plugin answer you.