gravityflowchecklists_form_url

Description

The hook gravityflowchecklists_form_url allows the URL to the form from the checklist to be modified.

Parameters

ParameterTypeDetails
$formForm The form
$entriesEntry The entries
$exemptBoolean User exempted fro submitting the form
$URLString The URL

Example

Modify which URL the checklist goes to for a specific form.

add_filter( 'gravityflowchecklists_form_url', 'custom_checklist_form_url', 10, 4 );

function custom_checklist_form_url( $url, $form, $entries, $exempt ) {
    //Replace with your desired Form ID and custom URL
    if ( $form['id'] == '8' ) {
        $url = '/custom-checklist-form-page/';
    }
    return $url;
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?