1. Home
  2. Actions
  3. Action reference: wpforms_frontend_output_before

do_action( 'wpforms_frontend_output_before', $form_data, $form );

Action that fires at when form shortcode is run, before the form is displayed.

Description

The wpforms_frontend_output_before action fires before a form is displayed on the site’s frontend. It only fires if the form exists and contains fields.

Parameters

$form_data
(array) Processed form settings/data, prepared to be used later.
$form
(object) Unprocessed form settings/data.

Source

wpforms/includes/class-frontend.php

Updated on November 9, 2018

Was this article helpful?