Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Marketing::get_title()publicWC 1.0

Title.

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

No Hooks.

Return

String.

Usage

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

Код Marketing::get_title() WC 7.1.0

public function get_title() {
	if ( count( $this->task_list->get_sections() ) > 0 && ! $this->is_complete() ) {
		return __( 'Grow your business with marketing tools', 'woocommerce' );
	}
	if ( true === $this->get_parent_option( 'use_completed_title' ) ) {
		if ( $this->is_complete() ) {
			return __( 'You added sales channels', 'woocommerce' );
		}
		return __( 'Get more sales', 'woocommerce' );
	}
	return __( 'Set up marketing tools', 'woocommerce' );
}