gpsa_gform_form_args

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Force the form title and description to display
  5. Since

Description

Filter to modify the Gravity Forms form arguments. This filter is essentially a wrapper around gform_form_args which is only applied in the context of Submit to Access blocking content access.

Usage

Filter applied globally to all forms

add_filter( 'gpsa_gform_form_args', 'my_custom_function' );

Parameters

$form_args array

The form arguments.

Examples

Force the form title and description to display

This example shows how to force the form title and description to always display when forms are rendered through Submit to Access.

add_filter( 'gpsa_gform_form_args', function( $args ) {
    $args['display_title']       = true;
    $args['display_description'] = true;
    return $args;
} );

Since

  • 1.0.0 Hook added.