Description #
This filter is used to return single-entry widgets. Using this you can push your own widgets.
apply_filters('fluentform/submissions_widgets', [], $entryData, $submission);
Usage #
add_filter('fluentform/submissions_widgets', function($widgets, $data, $submission) {
$widgetData = [
'title' => __('My Widget', 'fluentform-pdf'),
'type' => 'html_content'
];
$widgetData['content'] = "My Content";
$widgets['pdf_feeds'] = $widgetData;
return $widgets;
}, 10, 2);
Parameters #
- $widgets (array) Widgets
- $data (object) Data
- $submission (array) Submission Data
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\Submission\SubmissionServices -> resources($attributes)