Description #
This filter returns formatted post types for the post-selection field.
apply_filters('fluentform/post_selection_types', $formattedTypes);
Usage #
add_filter('fluentform/post_selection_types', function ($formattedTypes) {
// do your stuff
return $formattedTypes
}, 10, 1);
Parameters #
- $formattedTypes (array) Formatted Posts
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentFormPro\src\Components\PostSelectionField -> generalEditorElement()