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