---
title: fluentform/post_selection_label_by
description: "## Description  This filter returns the label for the post-type selection field. ```php apply_filters('fluentform/post_selection_label_by', 'post_title', $form); ``` ## Usage   ```php add_filter('fluentform/post_selection_label_by', function ($label, $form) { // do your stuff return $label }, 10, 2); ``` ## Parameters - **$label** (string)…"
url: "https://fluentforms.com/docs/fluentform_post_selection_label_by/"
updated: "2023-07-25"
category: Filter Hooks
---

# fluentform/post_selection_label_by

## Description 

This filter returns the label for the post-type selection field.

```php
apply_filters('fluentform/post_selection_label_by', 'post_title', $form);
```

## Usage  

```php
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](http://codex.wordpress.org/Theme_Development#Functions_File) file of your active theme.

## Source Code

This filter is located in *FluentFormPro\Components\Post*\PopulatePostForm -> renderPostSelectionField($data, $form)
