WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
класс не описан

Yoast\WP\SEO\Conditionals

Migrations_Conditional{} Yoast 1.0

Class for integrations that depend on having all migrations run.

Хуков нет.

Возвращает

Null. Ничего.

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

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

Методы

  1. __construct( Migration_Status $migration_status )
  2. is_met()

Код Migrations_Conditional{} Yoast 15.6.2

<?php
class Migrations_Conditional implements Conditional {

	/**
	 * The migration status.
	 *
	 * @var Migration_Status
	 */
	protected $migration_status;

	/**
	 * Migrations_Conditional constructor.
	 *
	 * @param Migration_Status $migration_status The migration status object.
	 */
	public function __construct( Migration_Status $migration_status ) {
		$this->migration_status = $migration_status;
	}

	/**
	 * Returns `true` when all database migrations have been run.
	 *
	 * @returns boolean `true` when all database migrations have been run.
	 */
	public function is_met() {
		return $this->migration_status->is_version( 'free', \WPSEO_VERSION );
	}
}