Back to list of all filter and action hooks for Google Address Autocomplete.
Description #
Add custom conditions for determining if the current page is a checkout page or fragment.
Parameters #
$is_checkout
(bool) Whether the current page should be considered a checkout page.
Examples #
/**
* Always consider custom page as checkout
*/
function consider_custom_page_as_checkout( $is_checkout ) {
if ( is_page( 'custom-checkout' ) ) {
return true;
}
return $is_checkout;
}
add_filter( 'fc_gaa_is_checkout_page_or_fragment', 'consider_custom_page_as_checkout', 10 );