fluentform_payment_field_{$elementName}

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

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *