Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Determines if current page is the cart, or if the current request is a cart fragments AJAX request.
Parameters #
$is_cart(bool) Whether the current page is cart, or the current request is processing cart fragments. Defaults tofalse.
Examples #
/**
* Mark custom page as cart page
*/
function mark_custom_page_as_cart( $is_cart ) {
if ( is_page( 'custom-cart' ) ) {
return true;
}
return $is_cart;
}
add_filter( 'fc_is_cart_page_or_fragment', 'mark_custom_page_as_cart', 10 );
