WC_Admin_Setup_Wizard::wc_setup_activate_get_feature_list_strprotectedWC 1.0

Устарела с версии 4.6.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Get feature list string for activation.

Метод класса: WC_Admin_Setup_Wizard{}

Хуков нет.

Возвращает

Строку|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->wc_setup_activate_get_feature_list_str();

Список изменений

Устарела с 4.6.0

Код WC_Admin_Setup_Wizard::wc_setup_activate_get_feature_list_str() WC 10.7.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;
}