Description #
This filter is used when returning the pricing option for the payment field.
apply_filters('fluentform/payment_field_'.$elementName.'_pricing_options', $pricingOptions, $item, $this->form);
Usage #
add_filter('fluentform/payment_field_'.$elementName, function ($pricingOptions, $item, $form) {
// do your stuff
return $pricingOptions
}, 10, 3);
Parameters #
- $pricingOptions (array) Pricing options
- $item (array) Input Item
- $form (object) Form Object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in the pro version src/Payments/Classes/PaymentAction.php