fluentform_shortcode_parser_callback_{smart_code_name}

Description  #

You can use this filter to return data for your custom shortcode. In this case, custom shortcode first needs to be added using fluentform_all_editor_shortcodes filter.

apply_filters('fluentform_shortcode_parser_callback_'.$smart_code_name, $value, $form);

Usage   #

The following would apply to all forms:

add_filter('fluentform_editor_shortcode_callback_my_own_smartcode', function ($value, $form) {
       $dynamicValue = $form->title; // We are send current form title. You can fetch any data and return
       return $dynamicValue;
}, 10, 2);

Parameters #

Placement #

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

Source Code #

This filter is located in app/Services/FormBuilder/ShortCodeParser.php

Powered by BetterDocs

Leave a Reply

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