Automattic\WooCommerce\Internal\CustomerEmailVerification
VerificationController::redirect_with_result
Redirect to the orders section carrying a one-off result code, then exit.
Method of the class: VerificationController{}
No Hooks.
Returns
never.
Usage
// private - for code of main (parent) class only $result = $this->redirect_with_result( $code ): void;
- $code(string) (required)
- Result code understood by {@see self::result_notice()}.
VerificationController::redirect_with_result() VerificationController::redirect with result code WC 11.0.0
private function redirect_with_result( string $code ): void {
wp_safe_redirect( add_query_arg( self::NOTICE_PARAM, $code, wc_get_account_endpoint_url( 'orders' ) ) );
exit;
}