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.
Метод класса: InstallJPAndWCSPlugins{}
Хуков нет.
Возвращает
null
. Ничего (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 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' ); }