Skip to main content

gf_apply_filters()

function gf_apply_filters( $filter, $value )

Gravity Forms pre-processing for apply_filters

Allows additional filters based on form and field ID to be defined easily.

Since:

  • 1.9.12
  • 1.9.15 (Modifiers should no longer be passed as a separate parameter.)
  • 3.0.2 (Updated to catch and log throwable errors.)

Source: gravityforms.php:7381

Parameters​

NameTypeDefaultDescription
$filterstring | arrayThe name of the filter.
$valuemixedThe value to filter.

Returns​

  • mixed — The filtered value.

Throws​

  • Throwable