Skip to main content

fc_is_checkout_page_or_fragment

Type: Filter

Filters whether the current request is the checkout page or a checkout fragment.

Signature​

apply_filters( 'fc_is_checkout_page_or_fragment', $value );

Parameters​

NameTypeDescription
$valueboolValue to filter. Default false.

Since​

  • 2.3.1

Source: inc/checkout-steps.php

Examples​

add_filter( 'fc_is_checkout_page_or_fragment',
/**
* Mark custom page as a checkout page.
*
* @param bool $value Value to filter. Default false.
* @return bool Filtered value.
*/
function( $value ) {
if ( is_page( 'custom-checkout' ) ) {
return true;
}
return $value;
},
10
);