Table of Contents
Description #
This filter returns the label for the post type selection field.
apply_filters('fluentform_post_selection_label_by', 'post_title', $form);
Usage #
add_filter('fluentform_post_selection_label_by', function ($label,$form) {
// do your stuff
return $label
}, 10, 2);
Parameters #
- $label (string) Post Field
- $form (object) Form Object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in src/Components/PostSelectionField.php