WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
класс не описан

Yoast\WP\SEO\Integrations\Admin

Link_Count_Notification_Integration{} Yoast 1.0

Запрещена (устарела) с версии 15.1. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Link_Count_Notification_Integration class.

Хуков нет.

Возвращает

Null. Ничего.

Использование

$Link_Count_Notification_Integration = new Link_Count_Notification_Integration();
// use class methods

Методы

  1. __construct(
  2. cleanup_notification()
  3. get_conditionals()
  4. manage_notification()
  5. register_hooks()

Список изменений

Устарела с 15.1

Код Link_Count_Notification_Integration{} Yoast 15.2

<?php
class Link_Count_Notification_Integration implements Integration_Interface {

	/**
	 * The ID of the link indexing notification.
	 *
	 * @var string
	 */
	const NOTIFICATION_ID = 'wpseo-reindex-links';

	/**
	 * Returns the conditionals based in which this loadable should be active.
	 *
	 * @deprecated 15.1
	 * @codeCoverageIgnore
	 */
	public static function get_conditionals() {
		_deprecated_function( __METHOD__, 'WPSEO 15.1' );

		return [ Admin_Conditional::class ];
	}

	/**
	 * Link_Count_Notification_Integration constructor.
	 *
	 * @deprecated 15.1
	 * @codeCoverageIgnore
	 *
	 * @param Yoast_Notification_Center $notification_center       The Yoast notification center.
	 * @param Post_Link_Indexing_Action $post_link_indexing_action The post link indexing action.
	 */
	public function __construct(
		Yoast_Notification_Center $notification_center,
		Post_Link_Indexing_Action $post_link_indexing_action
	) {
		_deprecated_function( __METHOD__, 'WPSEO 15.1' );
	}

	/**
	 * Initializes the integration.
	 *
	 * @deprecated 15.1
	 * @codeCoverageIgnore
	 */
	public function register_hooks() {
		_deprecated_function( __METHOD__, 'WPSEO 15.1' );
	}

	/**
	 * Removes the notification when it is set and the amount of unindexed items is lower than the threshold.
	 *
	 * @deprecated 15.1
	 * @codeCoverageIgnore
	 */
	public function cleanup_notification() {
		_deprecated_function( __METHOD__, 'WPSEO 15.1' );
	}

	/**
	 * Adds the notification when it isn't set already and the amount of unindexed items is greater than the set
	 * threshold.
	 *
	 * @deprecated 15.1
	 * @codeCoverageIgnore
	 */
	public function manage_notification() {
		_deprecated_function( __METHOD__, 'WPSEO 15.1' );
	}
}