WordPress at Your Fingertips
function is not described

WC_Shortcodes::cart() public WC 1.0

Cart page shortcode.

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

No Hooks.

Return

String.

Usage

$result = WC_Shortcodes::cart();

Code of WC_Shortcodes::cart() WC 5.9.0

public static function cart() {
	return is_null( WC()->cart ) ? '' : self::shortcode_wrapper( array( 'WC_Shortcode_Cart', 'output' ) );
}