Yoast\WP\SEO\Conditionals\Admin

Non_Network_Admin_Conditional{}Yoast 1.0

Conditional that is only met when not on a network admin page.

Хуков нет.

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

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

Методы

  1. public is_met()

Код Non_Network_Admin_Conditional{} Yoast 23.0

class Non_Network_Admin_Conditional implements Conditional {

	/**
	 * Returns whether or not this conditional is met.
	 *
	 * @return bool Whether or not the conditional is met.
	 */
	public function is_met() {
		return ! \is_network_admin();
	}
}