# hostinger/3.0.78/includes/LlmsTxtGenerator/LlmsTxtHeadLink.php

Hostinger Tools, version 3.0.78. 33 lines.

- Page: https://pluginprobe.com/plugins/hostinger/3.0.78/code/includes/LlmsTxtGenerator/LlmsTxtHeadLink.php
- Raw: https://pluginprobe.com/plugins/hostinger/3.0.78/raw/includes/LlmsTxtGenerator/LlmsTxtHeadLink.php
- Modified: 2026-09-22T08:51:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hostinger/3.0.78/code/includes/LlmsTxtGenerator/LlmsTxtHeadLink.php#L10-L20`.

```php
<?php

namespace Hostinger\LlmsTxtGenerator;

use Hostinger\Admin\PluginSettings;

defined( 'ABSPATH' ) || exit;

class LlmsTxtHeadLink {

    protected PluginSettings $plugin_settings;
    protected LlmsTxtFileHelper $file_helper;

    public function __construct( PluginSettings $plugin_settings, LlmsTxtFileHelper $llmstxt_file_helper ) {
        $this->plugin_settings = $plugin_settings;
        $this->file_helper     = $llmstxt_file_helper;
    }

    public function render(): void {
        $settings = $this->plugin_settings->get_plugin_settings();

        if ( ! $settings->get_enable_llms_txt() ) {
            return;
        }

        if ( ! $this->file_helper->llmstxt_file_exists() ) {
            return;
        }

        printf( '<link rel="describedby" href="%s" />' . "\n", esc_url( $this->file_helper->get_llmstxt_file_url() ) );
    }
}

```
