Skip to main content

fc_checkout_header_cart_link

Type: Action

Fires where the checkout header cart link is rendered.

Signature​

do_action( 'fc_checkout_header_cart_link' );

Parameters​

This hook does not pass any parameters.

Since​

  • 1.2.0

Source: templates/fc/checkout-page-template/checkout/checkout-header.php

Examples​

add_action( 'fc_checkout_header_cart_link',
/**
* Add custom cart link.
*/
function() {
echo '<a href="' . wc_get_cart_url() . '" class="custom-cart-link">View Cart</a>';
},
10
);