Automattic\WooCommerce\Blocks\Patterns

PTKPatternsStore::ensure_recurring_fetch_patterns_if_enabledpublicWC 1.0

Ensure a recurring fetch patterns action is scheduled. This is called by the action_scheduler_ensure_recurring_actions

Method of the class: PTKPatternsStore{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PTKPatternsStore = new PTKPatternsStore();
$PTKPatternsStore->ensure_recurring_fetch_patterns_if_enabled();

PTKPatternsStore::ensure_recurring_fetch_patterns_if_enabled() code WC 10.5.0

public function ensure_recurring_fetch_patterns_if_enabled() {
	if ( ! $this->allowed_tracking_is_enabled() ) {
		return;
	}

	$this->schedule_action_if_not_pending( self::FETCH_PATTERNS_ACTION );
}