diff --git a/README.md b/README.md index f3e16fd..2c3c7b9 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,8 @@ Customize the admin scheme: https://gist.github.com/nicomollet/7fd3e2e5334ef352a Shortcodes ----------- -[woocommerce_cart_link] Display a link to the Woocommerce cart +[woocommerce_cart_link] Display a link to the WooCommerce cart (params: `icon_class` `link_class` `show_amount` `show_count`) +[woocommerce_account_link] Display a link to the WooCommerce account page (params: `icon_class` `link_class`) Major components ----------- diff --git a/inc/plugins/woocommerce.php b/inc/plugins/woocommerce.php index 0bb5a92..249ecab 100644 --- a/inc/plugins/woocommerce.php +++ b/inc/plugins/woocommerce.php @@ -425,7 +425,7 @@ function stormbringer_woocommerce_pages_menu_item_classes( $classes, $item, $arg /** - * Woocommerce: Shortcode for displaying a link to basket + * Woocommerce: Shortcode [woocommerce_cart_link] for displaying a link to basket * * @param $atts * @@ -436,8 +436,6 @@ function woocommerce_cart_count_shortcode( $atts ) { $defaults = array( 'icon_class' => 'glyphicon glyphicon-shopping-cart', - 'empty_cart_text' => '', - 'items_in_cart_text' => '', 'show_count' => true, 'show_amount' => true, 'link_class' => 'link-cart', @@ -482,7 +480,7 @@ function woocommerce_cart_count_shortcode( $atts ) { add_shortcode( 'woocommerce_cart_link', 'woocommerce_cart_count_shortcode' ); /** - * Shortcode for displaying a link to account + * WooCommerce: Shortcode [woocommerce_account_link] for displaying a link to account * * @param $atts *