Skip to main content

fc_pro_cart_before_content

Type: Action

Fires before the content in the cart.

Signature​

do_action( 'fc_pro_cart_before_content' );

Parameters​

This hook does not pass any parameters.

Since​

  • 1.3.0

Source: templates/fc-pro/cart/cart/cart.php

Examples​

add_action( 'fc_pro_cart_before_content',
/**
* Add cart introduction message.
*/
function() {
echo '<div class="cart-intro">';
echo '<h2>' . esc_html__( 'Shopping Cart', 'text-domain' ) . '</h2>';
echo '</div>';
},
10
);