WPSEO_Plugin_Availability::has_dependencies()publicYoast 1.0

Checks if there are dependencies available for the plugin.

Метод класса: WPSEO_Plugin_Availability{}

Хуков нет.

Возвращает

true|false. Whether or not there is a dependency present.

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

$WPSEO_Plugin_Availability = new WPSEO_Plugin_Availability();
$WPSEO_Plugin_Availability->has_dependencies( $plugin );
$plugin(массив) (обязательный)
The information available about the plugin.

Код WPSEO_Plugin_Availability::has_dependencies() Yoast 22.4

public function has_dependencies( $plugin ) {
	return ( isset( $plugin['_dependencies'] ) && ! empty( $plugin['_dependencies'] ) );
}