Skip to main content

fc_checkout_update_before_unload

Type: Filter

Filters whether checkout fragments update before the page unloads.

Signature​

apply_filters( 'fc_checkout_update_before_unload', $value );

Parameters​

NameTypeDescription
$valuestringValue to filter. Default yes.

Since​

  • 1.5.2

Source: inc/enqueue.php

Examples​

add_filter( 'fc_checkout_update_before_unload',
/**
* Disable checkout update before page unload.
*
* @param string $value Value to filter. Default yes.
* @return string Filtered value.
*/
function( $value ) {
return 'no';
},
10
);