Automattic\WooCommerce\Internal\Admin\Notes

InstallJPAndWCSPlugins::on_install_error()publicWC 1.0

Create an alert notification in response to an error installing a plugin.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$InstallJPAndWCSPlugins = new InstallJPAndWCSPlugins();
$InstallJPAndWCSPlugins->on_install_error( $slug );
$slug(строка) (обязательный)
The slug of the plugin being installed.

Код InstallJPAndWCSPlugins::on_install_error() WC 8.7.0

public function on_install_error( $slug ) {
	// Exit early if we're not installing the Jetpack or the WooCommerce Shipping & Tax plugins.
	if ( 'jetpack' !== $slug && 'woocommerce-services' !== $slug ) {
		return;
	}

	self::possibly_add_note();
}