Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Products::get_title()publicWC 1.0

Title.

Method of the class: Products{}

No Hooks.

Return

String.

Usage

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

Products::get_title() code WC 7.1.0

public function get_title() {
	if ( count( $this->task_list->get_sections() ) > 0 && ! $this->is_complete() ) {
		return __( 'Create or upload your first products', 'woocommerce' );
	}
	if ( $this->get_parent_option( 'use_completed_title' ) === true ) {
		if ( $this->is_complete() ) {
			return __( 'You added products', 'woocommerce' );
		}
		return __( 'Add products', 'woocommerce' );
	}
	return __( 'Add my products', 'woocommerce' );
}