Skip to main content

fc_enable_fragments_refresh

Type: Filter

Filters whether the checkout fragment-refresh feature is enabled.

Signature​

apply_filters( 'fc_enable_fragments_refresh', $enabled );

Parameters​

NameTypeDescription
$enabledboolWhether the feature is enabled. Default false.

Since​

  • 3.0.4

Source: inc/fragments-refresh.php

Examples​

add_filter( 'fc_enable_fragments_refresh',
/**
* Enable fragments refresh feature.
*
* @param bool $enabled Whether the feature is enabled. Default false.
* @return bool Filtered value.
*/
function( $enabled ) {
return true;
},
10
);