gravityflow_can_render_form

The gravityflow_can_render_form filter overrides the default behaviour for the submit page
and allows any form on a Form Submission step to be displayed in the workflow submit page.

Parameters

Parameter Type Definition
$can_render_form Bool|WP Error Returns a boolean or a WP_Error object with a message to display to the user
$form_id Integer The id of the form to be rendered.

Examples

Example 1 -

Placeholder code.

add_filter( 'gravityflow_can_render_form', 'sh_gravityflow_can_render_form', 10, 2);
  function sh_gravityflow_can_render_form($can_render_form, $form_id ) {
      // Do something here ..
      return $can_render_form;
  }

Placement

This code should be placed in the functions.php file of your active theme or in a custom functions plugin.