WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard::get_wcs_requisite_plugins() protected WC 1.0

Deprecated from version 4.6.0. It is no longer supported and can 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.

{} It's a method of the class: WC_Admin_Setup_Wizard{}

No Hooks.

Return

Array.

Usage

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

Changelog

Deprecated 4.6.0

Code of WC_Admin_Setup_Wizard::get_wcs_requisite_plugins() WC 5.9.0

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;
}