PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.7
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.7
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 / admin / link-count-notification-integration.php

link-count-notification-integration.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.7, at src/deprecated/src/integrations/admin/link-count-notification-integration.php

86 lines 2.0 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\Admin;
4
5 use Yoast\WP\SEO\Actions\Indexing\Post_Link_Indexing_Action;
6 use Yoast\WP\SEO\Conditionals\Admin_Conditional;
7 use Yoast\WP\SEO\Integrations\Integration_Interface;
8 use Yoast_Notification_Center;
9
10 /**
11 * Link_Count_Notification_Integration class.
12 *
13 * @deprecated 15.1
14 * @codeCoverageIgnore
15 */
16 class Link_Count_Notification_Integration implements Integration_Interface {
17
18 /**
19 * The ID of the link indexing notification.
20 *
21 * @var string
22 */
23 const NOTIFICATION_ID = 'wpseo-reindex-links';
24
25 /**
26 * Returns the conditionals based in which this loadable should be active.
27 *
28 * @deprecated 15.1
29 * @codeCoverageIgnore
30 *
31 * @return array
32 */
33 public static function get_conditionals() {
34 \_deprecated_function( __METHOD__, 'WPSEO 15.1' );
35
36 return [ Admin_Conditional::class ];
37 }
38
39 /**
40 * Link_Count_Notification_Integration constructor.
41 *
42 * @deprecated 15.1
43 * @codeCoverageIgnore
44 *
45 * @param Yoast_Notification_Center $notification_center The Yoast notification center.
46 * @param Post_Link_Indexing_Action $post_link_indexing_action The post link indexing action.
47 */
48 public function __construct(
49 Yoast_Notification_Center $notification_center,
50 Post_Link_Indexing_Action $post_link_indexing_action
51 ) {
52 \_deprecated_function( __METHOD__, 'WPSEO 15.1' );
53 }
54
55 /**
56 * Initializes the integration.
57 *
58 * @deprecated 15.1
59 * @codeCoverageIgnore
60 */
61 public function register_hooks() {
62 \_deprecated_function( __METHOD__, 'WPSEO 15.1' );
63 }
64
65 /**
66 * Removes the notification when it is set and the amount of unindexed items is lower than the threshold.
67 *
68 * @deprecated 15.1
69 * @codeCoverageIgnore
70 */
71 public function cleanup_notification() {
72 \_deprecated_function( __METHOD__, 'WPSEO 15.1' );
73 }
74
75 /**
76 * Adds the notification when it isn't set already and the amount of unindexed items is greater than the set
77 * threshold.
78 *
79 * @deprecated 15.1
80 * @codeCoverageIgnore
81 */
82 public function manage_notification() {
83 \_deprecated_function( __METHOD__, 'WPSEO 15.1' );
84 }
85 }
86