Automattic\WooCommerce\Internal\Abilities

AbilitiesTracking::is_long_running_process │ protected │ WC 1.0

Whether this process can outlive many requests' worth of calls, such as an MCP STDIO server run with WP-CLI.

Method of the class: AbilitiesTracking{}

No Hooks.

Returns

bool.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_long_running_process(): bool;

AbilitiesTracking::is_long_running_process() code WC 11.3.0

protected function is_long_running_process(): bool {
	return defined( 'WP_CLI' ) && WP_CLI;
}