Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Payments::in_progress_labelpublicWC 1.0

The task in progress label.

Method of the class: Payments{}

No Hooks.

Returns

String.

Usage

$Payments = new Payments();
$Payments->in_progress_label();

Payments::in_progress_label() code WC 10.3.6

public function in_progress_label() {
	// If WooPayments live account onboarding is in progress, show "Action needed" label.
	if ( $this->has_woopayments_live_account_in_progress() ) {
		return esc_html__( 'Action needed', 'woocommerce' );
	}

	return esc_html__( 'Test account', 'woocommerce' );
}