Yoast\WP\SEO
Loader::conditionals_are_met()
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( $integration_class );
- $integration_class(Loadable_Interface) (обязательный)
- The class name of the integration.
Код Loader::conditionals_are_met() Loader::conditionals are met Yoast 19.2
protected function conditionals_are_met( $integration_class ) { $conditionals = $integration_class::get_conditionals(); foreach ( $conditionals as $conditional ) { if ( ! $this->container->get( $conditional )->is_met() ) { return false; } } return true; }