WC_Admin_Setup_Wizard::get_wcs_requisite_plugins()
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.
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 since | 4.6.0 |
WC_Admin_Setup_Wizard::get_wcs_requisite_plugins() WC Admin Setup Wizard::get wcs requisite plugins code WC 9.6.1
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; }