WPSEO_Plugin_Availability::is_dependency_active()
Checks whether a dependency is active.
Метод класса: WPSEO_Plugin_Availability{}
Хуков нет.
Возвращает
true|false
. Whether or not the dependency is active.
Использование
$WPSEO_Plugin_Availability = new WPSEO_Plugin_Availability(); $WPSEO_Plugin_Availability->is_dependency_active( $dependency );
- $dependency (обязательный)
- -
Код WPSEO_Plugin_Availability::is_dependency_active() WPSEO Plugin Availability::is dependency active Yoast 24.0
public function is_dependency_active( $dependency ) { return $dependency['conditional']->is_met(); }