Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Shipping::get_title()publicWC 1.0

Title.

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

Хуков нет.

Возвращает

Строку.

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

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

Код Shipping::get_title() WC 7.1.0

public function get_title() {
	if ( count( $this->task_list->get_sections() ) > 0 && ! $this->is_complete() ) {
		return __( 'Select how to ship your products', 'woocommerce' );
	}
	if ( true === $this->get_parent_option( 'use_completed_title' ) ) {
		if ( $this->is_complete() ) {
			return __( 'You added shipping costs', 'woocommerce' );
		}
		return __( 'Add shipping costs', 'woocommerce' );
	}
	return __( 'Set up shipping', 'woocommerce' );
}