PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.4
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.4
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 / integrations / front-end / theme-titles.php

theme-titles.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.4, at src/integrations/front-end/theme-titles.php

58 lines 1.2 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\Front_End;
4
5 use Yoast\WP\SEO\Conditionals\Front_End_Conditional;
6 use Yoast\WP\SEO\Integrations\Integration_Interface;
7
8 /**
9 * Notify the user by giving a deprecated notice.
10 */
11 class Theme_Titles implements Integration_Interface {
12
13 /**
14 * Returns the conditionals based in which this loadable should be active.
15 *
16 * @return array
17 */
18 public static function get_conditionals() {
19 return [ Front_End_Conditional::class ];
20 }
21
22 /**
23 * Initializes the integration.
24 *
25 * This is the place to register hooks and filters.
26 *
27 * @return void
28 */
29 public function register_hooks() {
30 \add_filter( 'thematic_doctitle', [ $this, 'title' ], 15 );
31 \add_filter( 'woo_title', [ $this, 'title' ], 99 );
32 }
33
34 /**
35 * Filters the title for woo_title and the thematic_doctitle.
36 *
37 * @deprecated 14.0
38 *
39 * @codeCoverageIgnore
40 *
41 * @param string $title The title.
42 *
43 * @return string The title.
44 */
45 public function title( $title ) {
46 \_deprecated_function(
47 __METHOD__,
48 'WPSEO 14.0',
49 \esc_html__(
50 'a theme that has proper title-tag theme support, or adapt your theme to have that support',
51 'wordpress-seo'
52 )
53 );
54
55 return $title;
56 }
57 }
58