Skip to main content

fc_enable_checkout_page_template

Type: Filter

Filters whether the distraction-free checkout page template is used.

Signature​

apply_filters( 'fc_enable_checkout_page_template', $enabled );

Parameters​

NameTypeDescription
$enabledboolWhether the feature is enabled. Default true.

Since​

  • 2.3.2

Source: inc/checkout-page-template.php

Examples​

add_filter( 'fc_enable_checkout_page_template',
/**
* Disable Fluid Checkout page template.
*
* @param bool $enabled Whether the feature is enabled. Default true.
* @return bool Filtered value.
*/
function( $enabled ) {
return false;
},
10
);