Yoast\WP\SEO\Conditionals\Third_Party

Wordproof_Integration_Active_Conditional{}Yoast 1.0

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

Conditional that is met when the WordProof integration is toggled on.

Хуков нет.

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

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

Методы

  1. public __construct( Wordproof_Helper $wordproof )
  2. public is_met()

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

Устарела с 22.10

Код Wordproof_Integration_Active_Conditional{} Yoast 25.1

class Wordproof_Integration_Active_Conditional implements Conditional {

	/**
	 * The WordProof helper.
	 *
	 * @var Wordproof_Helper
	 */
	private $wordproof;

	/**
	 * WordProof integration active constructor.
	 *
	 * @deprecated 22.10
	 * @codeCoverageIgnore
	 *
	 * @param Wordproof_Helper $wordproof The options helper.
	 */
	public function __construct( Wordproof_Helper $wordproof ) {
		\_deprecated_function( __METHOD__, 'Yoast SEO 22.10' );

		$this->wordproof = $wordproof;
	}

	/**
	 * Returns whether or not the WordProof Timestamp plugin is active.
	 *
	 * @deprecated 22.10
	 * @codeCoverageIgnore
	 *
	 * @return bool Whether or not the WordProof Timestamp plugin is active.
	 */
	public function is_met() {
		\_deprecated_function( __METHOD__, 'Yoast SEO 22.10' );

		return $this->wordproof->integration_is_active();
	}
}