Yoast\WP\SEO\Actions\Addon_Installation

Addon_Install_Action::install()protectedYoast 1.0

Runs the installation by using the WordPress installation routine.

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

Хуков нет.

Возвращает

true|false|WP_Error. True when success, WP_Error when something went wrong.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->install( $plugin_download );
$plugin_download(строка) (обязательный)
The url to the download.

Код Addon_Install_Action::install() Yoast 22.4

protected function install( $plugin_download ) {
	$plugin_upgrader = new Plugin_Upgrader();

	return $plugin_upgrader->install( $plugin_download );
}