---
title: Filter the default llms.txt content
url: "https://www.seopress.org/support/hooks/filter-the-default-llms-txt-content/"
lang: en-US
updated: 2026-10-20
hook_name: seopress_default_llms_txt_content
required_version: 9.5
---

# Filter the default llms.txt content

- **Hook name:** `seopress_default_llms_txt_content`
- **Required version:** 9.5

```php
<?php
/**
 * Filter the llms.txt content generated by default.
 *
 * @param string $content Markdown content.
 *
 * @return string
 */
function sp_default_llms_txt_content( $content ) {
	return $content . "\n## Contact\n\nhttps://example.com/contact/\n";
}
add_filter( 'seopress_default_llms_txt_content', 'sp_default_llms_txt_content' );
```

Source: [https://gist.github.com/wp-seopress/fd9dcbd2d08fd958c74325481a561340](https://gist.github.com/wp-seopress/fd9dcbd2d08fd958c74325481a561340)


Only applies to the automatically generated content, not to a custom content saved in the llms.txt settings.
