Skip to content

Commit 6441977

Browse files
committed
Readme: update with shortcode params
1 parent 1902857 commit 6441977

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ Customize the admin scheme: https://gist.github.com/nicomollet/7fd3e2e5334ef352a
6464

6565
Shortcodes
6666
-----------
67-
[woocommerce_cart_link] Display a link to the Woocommerce cart
67+
[woocommerce_cart_link] Display a link to the WooCommerce cart (params: `icon_class` `link_class` `show_amount` `show_count`)
68+
[woocommerce_account_link] Display a link to the WooCommerce account page (params: `icon_class` `link_class`)
6869

6970
Major components
7071
-----------

inc/plugins/woocommerce.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ function stormbringer_woocommerce_pages_menu_item_classes( $classes, $item, $arg
425425

426426

427427
/**
428-
* Woocommerce: Shortcode for displaying a link to basket
428+
* Woocommerce: Shortcode [woocommerce_cart_link] for displaying a link to basket
429429
*
430430
* @param $atts
431431
*
@@ -436,8 +436,6 @@ function woocommerce_cart_count_shortcode( $atts ) {
436436

437437
$defaults = array(
438438
'icon_class' => 'glyphicon glyphicon-shopping-cart',
439-
'empty_cart_text' => '',
440-
'items_in_cart_text' => '',
441439
'show_count' => true,
442440
'show_amount' => true,
443441
'link_class' => 'link-cart',
@@ -482,7 +480,7 @@ function woocommerce_cart_count_shortcode( $atts ) {
482480
add_shortcode( 'woocommerce_cart_link', 'woocommerce_cart_count_shortcode' );
483481

484482
/**
485-
* Shortcode for displaying a link to account
483+
* WooCommerce: Shortcode [woocommerce_account_link] for displaying a link to account
486484
*
487485
* @param $atts
488486
*

0 commit comments

Comments
 (0)