View Categories

fluentform/post_selection_label_by

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 Label
  • $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 FluentFormPro\Components\Post\PopulatePostForm -> renderPostSelectionField($data, $form)