Automattic\WooCommerce\Blocks\Patterns

PTKPatternsStore::allowed_tracking_is_enabledprivateWC 1.0

Check if the user allowed tracking.

Method of the class: PTKPatternsStore{}

No Hooks.

Returns

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->allowed_tracking_is_enabled(): bool;

PTKPatternsStore::allowed_tracking_is_enabled() code WC 9.8.5

private function allowed_tracking_is_enabled(): bool {
	return 'yes' === get_option( 'woocommerce_allow_tracking' );
}