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.

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

No Hooks.

Return

null. Nothing.

Usage

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

Код InstallJPAndWCSPlugins::install_jp_and_wcs_plugins() WC 7.1.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' );
}