Yoast\WP\SEO
Loader::conditionals_are_met() protected Yoast 1.0
Checks if all conditionals of a given integration are met.
{} Это метод класса: Loader{}
Хуков нет.
Возвращает
true/false
. Whether or not all conditionals of the integration are met.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->conditionals_are_met( $class );
- $class(Loadable_числоerface) (обязательный)
- The class name of the integration.
Код Loader::conditionals_are_met() Loader::conditionals are met Yoast 16.1.1
protected function conditionals_are_met( $class ) {
$conditionals = $class::get_conditionals();
foreach ( $conditionals as $conditional ) {
if ( ! $this->container->get( $conditional )->is_met() ) {
return false;
}
}
return true;
}