WooCommerce Code Reference

Search results

WC_Shortcode_Checkout

Shortcode checkout class.

Table of Contents

get() Get the shortcode content. string
output() Output the shortcode. mixed
order_pay() Show the pay page. mixed
order_received() Show the thanks page. mixed
checkout() Show the checkout. mixed

Methods

get()

Get the shortcode content.

public static get( $atts : array ) : string
Parameters
$atts : array

Shortcode attributes.

Return values
string

output()

Output the shortcode.

public static output( $atts : array ) : mixed
Parameters
$atts : array

Shortcode attributes.

Return values
mixed

order_pay()

Show the pay page.

private static order_pay( $order_id : int ) : mixed
Parameters
$order_id : int

Order ID.

Tags
throws

When validate fails.

Return values
mixed

order_received()

Show the thanks page.

private static order_received( $order_id : int ) : mixed
Parameters
$order_id : int

Order ID.

Return values
mixed
Back to the top