Automattic\WooCommerce\Internal\Admin\Notes

InstallJPAndWCSPlugins::install_jp_and_wcs_plugins()publicWC 1.0

Install the Jetpack and WooCommerce Shipping & Tax plugins in response to the action being clicked in the admin note.

Method of the class: InstallJPAndWCSPlugins{}

No Hooks.

Return

null. Nothing (null).

Usage

$InstallJPAndWCSPlugins = new InstallJPAndWCSPlugins();
$InstallJPAndWCSPlugins->install_jp_and_wcs_plugins( $note );
$note(Note) (required)
The note being actioned.

InstallJPAndWCSPlugins::install_jp_and_wcs_plugins() code WC 8.7.0

public function install_jp_and_wcs_plugins( $note ) {
	if ( self::NOTE_NAME !== $note->get_name() ) {
		return;
	}

	$this->install_and_activate_plugin( 'jetpack' );
	$this->install_and_activate_plugin( 'woocommerce-services' );
}