Automattic\WooCommerce\Proxies

LegacyProxy::exit()publicWC 1.0

Terminates execution of the script.

Method of the class: LegacyProxy{}

No Hooks.

Return

null. Nothing (null).

Usage

$LegacyProxy = new LegacyProxy();
$LegacyProxy->exit( $status );
$status(int|string)
An error code to be returned, or an error message to be shown.
Default: ''

LegacyProxy::exit() code WC 9.6.1

public function exit( $status = '' ) {
	// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	exit( $status );
}