PluginProbe
Hostinger Tools / trunk
Hostinger Tools vtrunk
3.0.78 3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 All 109 releases
← All changes | includes/Bootstrap.php +7 -2 3.0.67 → trunk View file →
@@ -6,8 +6,9 @@
6 6 use Hostinger\Admin\PluginSettings;
7 7 use Hostinger\Admin\Jobs\JobInitializer;
8 8 use Hostinger\Admin\Proxy;
9 9 use Hostinger\LlmsTxtGenerator\LlmsTxtFileHelper;
10 +use Hostinger\LlmsTxtGenerator\LlmsTxtHeadLink;
10 11 use Hostinger\LlmsTxtGenerator\LlmsTxtParser;
11 12 use Hostinger\Rest\Routes;
12 13 use Hostinger\Rest\SettingsRoutes;
13 14 use Hostinger\Admin\Assets as AdminAssets;
@@ -83,11 +84,15 @@
83 84
84 85 new JobInitializer( new Proxy( $client, $this->utils ) );
85 86 new Hooks();
86 87
87 - $plugin_settings = new PluginSettings();
88 + $plugin_settings = new PluginSettings();
89 + $llms_txt_file_helper = new LlmsTxtFileHelper();
88 90
89 - new LlmsTxtGenerator( $plugin_settings, new LlmsTxtFileHelper(), new LlmsTxtParser() );
91 + new LlmsTxtGenerator( $plugin_settings, $llms_txt_file_helper, new LlmsTxtParser() );
92 +
93 + $llms_txt_head_link = new LlmsTxtHeadLink( $plugin_settings, $llms_txt_file_helper );
94 + $this->loader->add_action( 'wp_head', $llms_txt_head_link, 'render' );
90 95
91 96 $settings_routes = new SettingsRoutes( $plugin_settings );
92 97 $routes = new Routes( $settings_routes );
93 98 $routes->init();