Automattic\WooCommerce\Internal\Abilities
AbilitiesTracking::is_long_running_process
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() AbilitiesTracking::is long running process code WC 11.3.0
protected function is_long_running_process(): bool {
return defined( 'WP_CLI' ) && WP_CLI;
}