Automattic\WooCommerce\Admin\Notes

InstallJPAndWCSPlugins::on_install_error()publicWC 1.0

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

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код InstallJPAndWCSPlugins::on_install_error() WC 6.4.1

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();
}