Automattic\WooCommerce\Admin\Notes
InstallJPAndWCSPlugins::install_jp_and_wcs_plugins() public WC 1.0
Install the Jetpack and WooCommerce Shipping & Tax plugins in response to the action being clicked in the admin note.
{} Это метод класса: InstallJPAndWCSPlugins{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$InstallJPAndWCSPlugins = new InstallJPAndWCSPlugins(); $InstallJPAndWCSPlugins->install_jp_and_wcs_plugins( $note );
- $note(Note) (обязательный)
- The note being actioned.
Код InstallJPAndWCSPlugins::install_jp_and_wcs_plugins() InstallJPAndWCSPlugins::install jp and wcs plugins WC 5.0.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' );
}