---
title: fluentform/before_form_render
description: "## Description This action fires right before the form is rendered. If you want to do a certain task after a form rendering then you can catch this action hook and do your staff. For example, checking for some conditions…"
url: "https://fluentforms.com/docs/fluentform_before_form_render/"
updated: "2023-07-25"
category: Action Hooks
---

# fluentform/before_form_render

## Description

This action fires right before the form is rendered. If you want to do a certain task after a form rendering then you can catch this action hook and do your staff. For example, checking for some conditions on whether to show the form or not.

```php
/*
* Source Action
*/
do_action('fluentform/before_form_render', $form);
```

## Usage

The following would apply to all forms:

```php
add_action('fluentform/before_form_render', 'your_custom_function', 10, 1);

function your_custom_function( $form )
{
   // Do your stuffs here
}
```

## Parameters

- **$form** (Object) [The $form Object](https://fluentforms.com/docs/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. Also, you can use php snippet plugins.

## Source Code

This hook is located in fluentform/app/Services/FormBuilder/FormBuilder.php.
