WPSEO_Plugin_Availability::get_dependencies()publicYoast 1.0

Gets the dependencies for the plugin.

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

Хуков нет.

Возвращает

Массив. Array containing all the dependencies associated with the plugin.

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

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

Код WPSEO_Plugin_Availability::get_dependencies() Yoast 22.4

public function get_dependencies( $plugin ) {
	if ( ! $this->has_dependencies( $plugin ) ) {
		return [];
	}

	return $plugin['_dependencies'];
}