WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard::wc_setup_activate_get_feature_list() 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();

Code of WC_Admin_Setup_Wizard::wc_setup_activate_get_feature_list() WC 5.9.0

protected function wc_setup_activate_get_feature_list() {
	$features = array();

	$stripe_settings = get_option( 'woocommerce_stripe_settings', false );
	$stripe_enabled  = is_array( $stripe_settings )
		&& isset( $stripe_settings['create_account'] ) && 'yes' === $stripe_settings['create_account']
		&& isset( $stripe_settings['enabled'] ) && 'yes' === $stripe_settings['enabled'];
	$ppec_settings   = get_option( 'woocommerce_ppec_paypal_settings', false );
	$ppec_enabled    = is_array( $ppec_settings )
		&& isset( $ppec_settings['reroute_requests'] ) && 'yes' === $ppec_settings['reroute_requests']
		&& isset( $ppec_settings['enabled'] ) && 'yes' === $ppec_settings['enabled'];

	$features['payment'] = $stripe_enabled || $ppec_enabled;
	$features['taxes']   = (bool) get_option( 'woocommerce_setup_automated_taxes', false );
	$features['labels']  = (bool) get_option( 'woocommerce_setup_shipping_labels', false );

	return $features;
}