WC_Shortcodes::cart()
Cart page shortcode.
Method of the class: WC_Shortcodes{}
No Hooks.
Return
String
.
Usage
$result = WC_Shortcodes::cart();
WC_Shortcodes::cart() WC Shortcodes::cart code WC 9.7.1
public static function cart() { return is_null( WC()->cart ) ? '' : self::shortcode_wrapper( array( 'WC_Shortcode_Cart', 'output' ) ); }