Yoast\WP\SEO\AI_Consent\Application

Consent_Handler_Interface{} │ interface │ Yoast 1.0

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

Interface Consent_Handler_Interface

This interface defines the methods for handling user consent.

Хуков нет.

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

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

Методы

  1. public grant_consent( int $user_id )
  2. public revoke_consent( int $user_id )
  3. ERROR: no method name found on line `* @deprecated 28.4`
  4. ERROR: no method name found on line `* @param int $user_id The user ID.`

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

Устарела с 28.4

Код Consent_Handler_Interface{} Yoast 28.9

interface Consent_Handler_Interface {

	/**
	 * Handles consent revoked by deleting the consent user metadata from the database.
	 *
	 * @deprecated 28.4
	 * @codeCoverageIgnore
	 *
	 * @param int $user_id The user ID.
	 *
	 * @return void
	 */
	public function revoke_consent( int $user_id );

	/**
	 * Handles consent granted by adding the consent user metadata to the database.
	 *
	 * @deprecated 28.4
	 * @codeCoverageIgnore
	 *
	 * @param int $user_id The user ID.
	 *
	 * @return void
	 */
	public function grant_consent( int $user_id );
}