PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / src / deprecated / src / integrations / frontend / site-schema-robots-txt-integration.php

site-schema-robots-txt-integration.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI trunk, at src/deprecated/src/integrations/frontend/site-schema-robots-txt-integration.php

53 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Yoast\WP\SEO\Integrations\Frontend;
4
5 use Yoast\WP\SEO\Helpers\Robots_Txt_Helper;
6 use Yoast\WP\SEO\Integrations\Integration_Interface;
7 use Yoast\WP\SEO\Schema_Aggregator\Infrastructure\Schema_Aggregator_Conditional;
8
9 /**
10 * Integration to add site schema XML sitemap to robots.txt.
11 *
12 * @deprecated 27.5
13 * @codeCoverageIgnore
14 */
15 class Site_Schema_Robots_Txt_Integration implements Integration_Interface {
16
17 /**
18 * Returns the conditional for this route.
19 *
20 * @return array<string> The conditionals that must be met to load this.
21 */
22 public static function get_conditionals() {
23 \_deprecated_function( __METHOD__, 'Yoast SEO 27.5' );
24 return [ Schema_Aggregator_Conditional::class ];
25 }
26
27 /**
28 * Registers the hooks for this integration.
29 *
30 * @deprecated 27.5
31 * @codeCoverageIgnore
32 *
33 * @return void
34 */
35 public function register_hooks() {
36 \_deprecated_function( __METHOD__, 'Yoast SEO 27.5' );
37 }
38
39 /**
40 * Adds the XML schema map to the robots.txt if the site is public.
41 *
42 * @deprecated 27.5
43 * @codeCoverageIgnore
44 *
45 * @param Robots_Txt_Helper $robots_txt_helper The robots.txt helper.
46 *
47 * @return void
48 */
49 public function maybe_add_xml_schema_map( Robots_Txt_Helper $robots_txt_helper ) {
50 \_deprecated_function( __METHOD__, 'Yoast SEO 27.5' );
51 }
52 }
53