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.
| Parameter | Type | Description |
|---|---|---|
$is_solicitation_allowed | bool | Indicates if the solicitation is allowed |
Changelog
| Version | Description |
|---|---|
| 3.0.6 | Introduced |
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;
});Updated about 1 year ago