Automattic\WooCommerce\Internal\Admin\Notes
InstallJPAndWCSPlugins::install_jp_and_wcs_plugins
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.
Returns
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() InstallJPAndWCSPlugins::install jp and wcs plugins code WC 10.3.3
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' );
}