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
| Name | Type | Description |
|---|---|---|
$value | bool | Value 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
);