View Categories

fluentform/payment_smartcode

Description  #

This filter is available before rendering the payment shortcodes.

apply_filters('fluentform/payment_smartcode', $value, $property, self::getInstance());

Usage   #

The following would apply to all forms:

add_filter('fluentform/payment_smartcode', function($value, $property, $instance){
   return $property;
}, 10, 1);

Parameters #

  • $value (string) Form Data
  • $property (array) Substring after {payment.
  • $instance (Object) Shortcode Parser Instance

Placement #

This code should be placed in the functions.php file of your active theme.

Source Code #

This filter is located in FluentForm\App\Services\FormBuilder\ShortcodeParser -> parseShortCodeFromString($parsable, $isUrl = false, $isHtml = false)