Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

StoreDetails::is_complete()publicWC 1.0

Task completion.

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

Хуков нет.

Возвращает

true|false.

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

$StoreDetails = new StoreDetails();
$StoreDetails->is_complete();

Код StoreDetails::is_complete() WC 7.1.0

public function is_complete() {
	// Mark as completed if the store address, city and postcode are set. We don't need to check the country because it's set by default.
	return get_option( 'woocommerce_store_address', '' ) !== '' && get_option( 'woocommerce_store_city', '' ) !== '' &&
	get_option( 'woocommerce_store_postcode', '' ) !== '';
}