WC_Admin_Setup_Wizard::get_wcs_requisite_pluginsprotectedWC 1.0

Deprecated since 4.6.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Retrieve info for missing WooCommerce Services and/or Jetpack plugin.

Method of the class: WC_Admin_Setup_Wizard{}

No Hooks.

Returns

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_wcs_requisite_plugins();

Changelog

Deprecated since 4.6.0

WC_Admin_Setup_Wizard::get_wcs_requisite_plugins() code WC 10.4.3

protected function get_wcs_requisite_plugins() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	$plugins = array();
	if ( ! is_plugin_active( 'woocommerce-services/woocommerce-services.php' ) && ! get_option( 'woocommerce_setup_background_installing_woocommerce-services' ) ) {
		$plugins[] = array(
			'name' => __( 'WooCommerce Services', 'woocommerce' ),
			'slug' => 'woocommerce-services',
		);
	}
	if ( ! is_plugin_active( 'jetpack/jetpack.php' ) && ! get_option( 'woocommerce_setup_background_installing_jetpack' ) ) {
		$plugins[] = array(
			'name' => __( 'Jetpack', 'woocommerce' ),
			'slug' => 'jetpack',
		);
	}
	return $plugins;
}