Automattic\WooCommerce\Proxies
LegacyProxy::exit
Terminates execution of the script.
Method of the class: LegacyProxy{}
No Hooks.
Returns
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() LegacyProxy::exit code WC 10.5.0
public function exit( $status = '' ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
exit( $status );
}