wc_sequra_pumbaa_options

Hook Filter

Filter the options to be sent to seQura if needed.

Description

This filter allows modify the options that are sent to the seQura Checkout Form

ParameterTypeDescription
$optionsarrayAn array containing seQura product and campaing values that will be passed to the seQura Checkout Form
$orderWC_OrderThe order
$extraarrayReserved to pass additional information. Currently is not being used

Changelog

VersionDescription
2.0.0Introduced

Usage Example

add_filter('wc_sequra_pumbaa_options', function($options, $order, $extra){
  return array(
    'product' => $options['product'],
    'campaign' => $options['campaign'],
  );
}, 10, 3);