Yoast\WP\SEO\Conditionals

Not_Admin_Ajax_Conditional{}Yoast 1.0

Conditional that is only met when not in a admin-ajax request.

Хуков нет.

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

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

Методы

  1. public is_met()

Код Not_Admin_Ajax_Conditional{} Yoast 19.2

class Not_Admin_Ajax_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 ( ! \wp_doing_ajax() );
	}
}