Yoast\WP\SEO\Conditionals

Front_End_Conditional{}Yoast 1.0

Conditional that is only met when NOT in the admin.

Хуков нет.

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

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

Методы

  1. public is_met()

Код Front_End_Conditional{} Yoast 19.10

class Front_End_Conditional implements Conditional {

	/**
	 * Returns `true` when NOT on an admin page.
	 *
	 * @return bool `true` when NOT on an admin page.
	 */
	public function is_met() {
		return ! \is_admin();
	}
}