WC_Shortcode_Checkout
in package
Shortcode checkout class.
Table of Contents
- get() : string
- Get the shortcode content.
- output() : mixed
- Output the shortcode.
- checkout() : mixed
- Show the checkout.
- order_pay() : mixed
- Show the pay page.
- order_received() : mixed
- Show the thanks page.
Methods
get()
Get the shortcode content.
public
static get(array $atts) : string
Parameters
- $atts : array
-
Shortcode attributes.
Return values
stringoutput()
Output the shortcode.
public
static output(array $atts) : mixed
Parameters
- $atts : array
-
Shortcode attributes.
Return values
mixedcheckout()
Show the checkout.
private
static checkout() : mixed
Return values
mixedorder_pay()
Show the pay page.
private
static order_pay(int $order_id) : mixed
Parameters
- $order_id : int
-
Order ID.
Tags
Return values
mixedorder_received()
Show the thanks page.
private
static order_received(int $order_id) : mixed
Parameters
- $order_id : int
-
Order ID.