Yoast\WP\SEO\Conditionals

Non_Multisite_Conditional{}Yoast 1.0

Conditional that is only met when we aren't in a multisite setup.

Хуков нет.

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

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

Методы

  1. public is_met()

Код Non_Multisite_Conditional{} Yoast 19.10

class Non_Multisite_Conditional implements Conditional {

	/**
	 * Returns `true` when we aren't in a multisite setup.
	 *
	 * @return bool `true` when we aren't in a multisite setup.
	 */
	public function is_met() {
		return ! \is_multisite();
	}
}