sequra_block_integration_is_solicitation_allowed

Check if solicitation is allowed

Description

Check if the current page is the WooCommerce checkout page. This must be used only when your theme uses Gutenberg blocks and a custom checkout page exists in order to make seQura payment options work properly.

ParameterTypeDescription
$is_solicitation_allowedboolIndicates if the solicitation is allowed

Changelog

VersionDescription
3.0.6Introduced

Usage Example

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