sequra_is_checkout

Hook Filter

Check if the current page is the checkout page.

Description

Check if the current page is either the WooCommerce checkout or order pay page. This must be used when custom checkout pages exist in order to make seQura payment options work properly.

ParameterTypeDescription
$is_checkoutboolIndicates if the current page is either the checkout or order pay page

Changelog

VersionDescription
3.0.0Introduced

Usage Example

add_filter('sequra_is_checkout', function($is_checkout){
  // In case you have a custom checkout page wit ID 999
  if(999 === get_the_ID()){
    return true;
  }
  return $is_checkout;
});