gppt_hide_footer

  1. Description
  2. Usage
    1. Apply to All Forms
    2. Apply to Specific Form (by form ID)
  3. Parameters
  4. Examples
  5. Source Code
  6. Since

Description

Filter the visibility of the form footer.

If “Hide Next Button” and “Hide Previous Button” settings are enabled and GF’s Save & Continue feature is disabled, the footer will automatically be hidden.

Usage

Apply to All Forms

add_filter( 'gppt_hide_footer', 'your_function_name', 10, 3 );

Apply to Specific Form (by form ID)

// format: gppt_hide_footer_{formId}
add_filter( 'gppt_hide_footer_7', 'your_function_name', 10, 3 );

Parameters

  • $hide_footer bool

    Set to false to disable hiding the footer. Defaults to true.

  • $form Form object

    The current form object.

Examples

<?php
/**
 * Gravity Perks // Page Transitions // Disable Hiding the Form Footer
 * https://gravitywiz.com/documentation/gppt_hide_footer/
 */
add_filter( 'gppt_hide_footer', '__return_false', 10, 2 );

Source Code

This filter is located in GP_Page_Transitions::hide_next_prev_buttons() in class-gp-page-transitions.php.

Since

This filter is available since GP Page Transitions 1.0.