fluentform_single_entry_widgets

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_entry_lists_labels', 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

Powered by BetterDocs

Leave a Reply

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