WordPress at Your Fingertips
function is not described

WC_AJAX::checkout() public WC 1.0

Process ajax checkout form.

{} It's a method of the class: WC_AJAX{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_AJAX::checkout();

Code of WC_AJAX::checkout() WC 5.9.0

public static function checkout() {
	wc_maybe_define_constant( 'WOOCOMMERCE_CHECKOUT', true );
	WC()->checkout()->process_checkout();
	wp_die( 0 );
}