Table of Contents
Description #
This filter is used to return single entry widgets. Using this you can push your own widgets.
apply_filters('fluentform_single_entry_widgets', [], $entryData);
Usage #
add_filter('fluentform_single_entry_widgets', function($widgets, $data) {
$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
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in app/Modules/Entries/Entries.php