WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard::wc_setup_activate_get_feature_list_str() protected WC 1.0

  • @deprecated 4.6.0

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Admin_Setup_Wizard::wc_setup_activate_get_feature_list_str() WC 5.9.0

protected function wc_setup_activate_get_feature_list_str() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	$features = $this->wc_setup_activate_get_feature_list();
	if ( $features['payment'] && $features['taxes'] && $features['labels'] ) {
		return __( 'payment setup, automated taxes and discounted shipping labels', 'woocommerce' );
	} else if ( $features['payment'] && $features['taxes'] ) {
		return __( 'payment setup and automated taxes', 'woocommerce' );
	} else if ( $features['payment'] && $features['labels'] ) {
		return __( 'payment setup and discounted shipping labels', 'woocommerce' );
	} else if ( $features['payment'] ) {
		return __( 'payment setup', 'woocommerce' );
	} else if ( $features['taxes'] && $features['labels'] ) {
		return __( 'automated taxes and discounted shipping labels', 'woocommerce' );
	} else if ( $features['taxes'] ) {
		return __( 'automated taxes', 'woocommerce' );
	} else if ( $features['labels'] ) {
		return __( 'discounted shipping labels', 'woocommerce' );
	}
	return false;
}