Description
The hook gravityflowchecklists_form_url allows the URL to the form from the checklist to be modified.
Parameters
Parameter | Type | Details |
---|---|---|
$form | Form | The form |
$entries | Entry | The entries |
$exempt | Boolean | User exempted fro submitting the form |
$URL | String | 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?