### [wpforms_form_pages_content_before](https://wpforms.com/developers/wpforms_form_pages_content_before/)

**Published:** June 11, 2021
**Author:** David Ozokoye

**Excerpt:** The wpforms_form_pages_content_before  action fires before a form is displayed on the site’s frontend, only if the form exists, contains fields, and was created with the <strong>Form Pages</strong> addon.


**Content:**

## Description

The `wpforms_form_pages_content_before` action fires before a form is displayed on the site’s frontend, and the form was created with the Form Pages addon.

## Parameters

This action does not accept any parameters.

## More Information

The `wpforms_form_pages_content_before` only fires for forms created with the [Form Pages addon](https://wpforms.com/docs/how-to-install-and-use-the-form-pages-addon/ "Form Pages Addon"). It executes early on in the output rendering process.

An alternate action to consider is `wpforms_form_pages_content_after`, as it functions similarly.

## Source

`wpforms-form-pages/templates/single-form.php`

## Examples

In this example, we’re going to post a link to our full digital catalog prior to displaying the form.

```

/**
 * Output something before your Form Pages form(s) using the Fires before a form is displayed on the site’s frontend, only if the form exists, contains fields, and was created with the Form Pages addon.
 action.
 * 
 * @link  https://wpforms.com/developers/wpforms_form_pages_content_before/
 */
function wpf_dev_form_pages_content_before( ) {

    // Run code or see example echo statement below.
    _e( 'If you would like to download our digital catalog, click here.', 'plugin-domain' );
  
}
add_action( 'wpforms_form_pages_content_before', 'wpf_dev_form_pages_content_before');
```

![using the wpforms_form_pages_content_before action, you can output something before the form is displayed](https://wpforms.com/wp-content/uploads/2021/06/wpforms-display-before-form-pages.jpg)

**Categories:** Actions Hooks

**Tags:** PHP

---

