WC_Shortcodes::cart()public staticWC 1.0

Cart page shortcode.

Method of the class: WC_Shortcodes{}

No Hooks.

Return

String.

Usage

$result = WC_Shortcodes::cart();

WC_Shortcodes::cart() code WC 8.7.0

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