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
| 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 |