Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Payments::get_title()publicWC 1.0

Title.

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

No Hooks.

Return

String.

Usage

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

Код Payments::get_title() WC 7.1.0

public function get_title() {
	if ( count( $this->task_list->get_sections() ) > 0 && ! $this->is_complete() ) {
		return __( 'Add a way to get paid', 'woocommerce' );
	}
	if ( true === $this->get_parent_option( 'use_completed_title' ) ) {
		if ( $this->is_complete() ) {
			return __( 'You set up payments', 'woocommerce' );
		}
		return __( 'Set up payments', 'woocommerce' );
	}
	return __( 'Set up payments', 'woocommerce' );
}