---
title: "fluentform/payment_field_{$elementName}"
description: "## Description  This filter is used when returning the pricing option for the payment field. ```php apply_filters('fluentform/payment_field_'.$elementName.'_pricing_options', $pricingOptions, $item, $this->form); ``` ## Usage   ```php add_filter('fluentform/payment_field_'.$elementName, function ($pricingOptions, $item, $form) { // do your stuff return $pricingOptions }, 10, 3); ```…"
url: "https://fluentforms.com/docs/fluenform_payment_field_elementname/"
updated: "2023-07-21"
category: Filter Hooks
---

# fluentform/payment_field_{$elementName}

## Description 

This filter is used when returning the pricing option for the payment field.

```php
apply_filters('fluentform/payment_field_'.$elementName.'_pricing_options', $pricingOptions, $item, $this->form);
```

## Usage  

```php
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](http://codex.wordpress.org/Theme_Development#Functions_File) file of your active theme.

## Source Code

This filter is located in the pro version *src/Payments/Classes/PaymentAction.php*
