{"id":2122,"date":"2024-08-08T15:06:42","date_gmt":"2024-08-08T19:06:42","guid":{"rendered":"https:\/\/docs.gravityflow.io\/?p=2122"},"modified":"2025-05-16T10:58:21","modified_gmt":"2025-05-16T14:58:21","slug":"gravityflow_can_render_form","status":"publish","type":"post","link":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/","title":{"rendered":"gravityflow_can_render_form"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-description\">Description<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>gravityflow_can_render_form<\/strong> filter overrides the default behavior for the submit page<br>and allows any form on a Form Submission step to be displayed in the workflow submit page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parameters\">Parameters<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th>Parameter name<\/th><th>Type<\/th><th>Details<\/th><\/tr><\/thead><tbody><tr><td><strong>$can_render_form<\/strong><\/td><td><a href=\"https:\/\/codex.wordpress.org\/How_to_Pass_Tag_Parameters#Bool\">Boolean<\/a> or <a href=\"https:\/\/codex.wordpress.org\/Class_Reference\/WP_Error\">WP Error<\/a><\/td><td>Returns a boolean or a WP_Error object with a message to display to the user<\/td><\/tr><tr><td><strong>$form_id<\/strong> <\/td><td><a href=\"https:\/\/codex.wordpress.org\/How_to_Pass_Tag_Parameters#Integer\">Integer<\/a><\/td><td>The id of the form to be rendered.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-examples\">Examples<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-prevent-a-specific-form-from-rendering\">Prevent a specific form from rendering<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;gravityflow_can_render_form&#039;, &#039;sh_gravityflow_can_render_form&#039;, 10, 2 );\nfunction sh_gravityflow_can_render_form( $can_render_form, $form_id ) {\n     if ($form_id == &#039;134&#039;){$can_render_form = false;}\n          return $can_render_form;\n     }\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-placement\">Placement<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This code can be used in the <a href=\"https:\/\/developer.wordpress.org\/themes\/basics\/theme-functions\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">functions.php<\/a> file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See also the PHP section in this article: <a href=\"https:\/\/docs.gravityflow.io\/where-do-i-put-this-code\/\" target=\"_blank\" rel=\"noreferrer noopener\">Where Do I Put This Code?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The gravityflow_can_render_form filter overrides the default behavior for the submit page<br \/>\nand allows any form on a Form Submission step to be displayed in the workflow submit page.<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_autodraft_ids":[],"_sb_is_suggestion_mode":false,"_sb_show_suggestion_boards":false,"_sb_show_comment_boards":false,"_sb_suggestion_history":"","_sb_update_block_changes":"","_is_real_time_mode":false,"_realtime_collaborators":"","footnotes":"","cf_checklist_status":[]},"categories":[17],"tags":[78],"class_list":["post-2122","post","type-post","status-publish","format-standard","hentry","category-gravityflow_actions_filters","tag-developer-docs","wpautop"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>gravityflow_can_render_form - Gravity Flow Documentation<\/title>\n<meta name=\"description\" content=\"The gravityflow_can_render_form filter overrides the default behavior for the submit pageand allows any form on a Form Submission step to be displayed in the workflow submit page.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"gravityflow_can_render_form\" \/>\n<meta property=\"og:description\" content=\"The gravityflow_can_render_form filter overrides the default behavior for the submit pageand allows any form on a Form Submission step to be displayed in the workflow submit page.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/\" \/>\n<meta property=\"og:site_name\" content=\"Gravity Flow Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-08T19:06:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-16T14:58:21+00:00\" \/>\n<meta name=\"author\" content=\"subrato\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"subrato\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/gravityflow_can_render_form\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/gravityflow_can_render_form\\\/\"},\"author\":{\"name\":\"subrato\",\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/#\\\/schema\\\/person\\\/89d1fe9718d100260c8ecb16c1d51fec\"},\"headline\":\"gravityflow_can_render_form\",\"datePublished\":\"2024-08-08T19:06:42+00:00\",\"dateModified\":\"2025-05-16T14:58:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/gravityflow_can_render_form\\\/\"},\"wordCount\":81,\"commentCount\":0,\"keywords\":[\"developer docs\"],\"articleSection\":[\"Gravity Flow Actions and Filters\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/docs.gravityflow.io\\\/gravityflow_can_render_form\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/gravityflow_can_render_form\\\/\",\"url\":\"https:\\\/\\\/docs.gravityflow.io\\\/gravityflow_can_render_form\\\/\",\"name\":\"gravityflow_can_render_form - Gravity Flow Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/#website\"},\"datePublished\":\"2024-08-08T19:06:42+00:00\",\"dateModified\":\"2025-05-16T14:58:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/#\\\/schema\\\/person\\\/89d1fe9718d100260c8ecb16c1d51fec\"},\"description\":\"The gravityflow_can_render_form filter overrides the default behavior for the submit pageand allows any form on a Form Submission step to be displayed in the workflow submit page.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/gravityflow_can_render_form\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/docs.gravityflow.io\\\/gravityflow_can_render_form\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/gravityflow_can_render_form\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/docs.gravityflow.io\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"gravityflow_can_render_form\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/#website\",\"url\":\"https:\\\/\\\/docs.gravityflow.io\\\/\",\"name\":\"Gravity Flow Documentation\",\"description\":\"Gravity Flow Documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/docs.gravityflow.io\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/docs.gravityflow.io\\\/#\\\/schema\\\/person\\\/89d1fe9718d100260c8ecb16c1d51fec\",\"name\":\"subrato\",\"url\":\"https:\\\/\\\/docs.gravityflow.io\\\/author\\\/subrato\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"gravityflow_can_render_form - Gravity Flow Documentation","description":"The gravityflow_can_render_form filter overrides the default behavior for the submit pageand allows any form on a Form Submission step to be displayed in the workflow submit page.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/","og_locale":"en_US","og_type":"article","og_title":"gravityflow_can_render_form","og_description":"The gravityflow_can_render_form filter overrides the default behavior for the submit pageand allows any form on a Form Submission step to be displayed in the workflow submit page.","og_url":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/","og_site_name":"Gravity Flow Documentation","article_published_time":"2024-08-08T19:06:42+00:00","article_modified_time":"2025-05-16T14:58:21+00:00","author":"subrato","twitter_card":"summary_large_image","twitter_misc":{"Written by":"subrato","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/#article","isPartOf":{"@id":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/"},"author":{"name":"subrato","@id":"https:\/\/docs.gravityflow.io\/#\/schema\/person\/89d1fe9718d100260c8ecb16c1d51fec"},"headline":"gravityflow_can_render_form","datePublished":"2024-08-08T19:06:42+00:00","dateModified":"2025-05-16T14:58:21+00:00","mainEntityOfPage":{"@id":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/"},"wordCount":81,"commentCount":0,"keywords":["developer docs"],"articleSection":["Gravity Flow Actions and Filters"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/","url":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/","name":"gravityflow_can_render_form - Gravity Flow Documentation","isPartOf":{"@id":"https:\/\/docs.gravityflow.io\/#website"},"datePublished":"2024-08-08T19:06:42+00:00","dateModified":"2025-05-16T14:58:21+00:00","author":{"@id":"https:\/\/docs.gravityflow.io\/#\/schema\/person\/89d1fe9718d100260c8ecb16c1d51fec"},"description":"The gravityflow_can_render_form filter overrides the default behavior for the submit pageand allows any form on a Form Submission step to be displayed in the workflow submit page.","breadcrumb":{"@id":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.gravityflow.io\/gravityflow_can_render_form\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.gravityflow.io\/"},{"@type":"ListItem","position":2,"name":"gravityflow_can_render_form"}]},{"@type":"WebSite","@id":"https:\/\/docs.gravityflow.io\/#website","url":"https:\/\/docs.gravityflow.io\/","name":"Gravity Flow Documentation","description":"Gravity Flow Documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.gravityflow.io\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.gravityflow.io\/#\/schema\/person\/89d1fe9718d100260c8ecb16c1d51fec","name":"subrato","url":"https:\/\/docs.gravityflow.io\/author\/subrato\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/posts\/2122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/comments?post=2122"}],"version-history":[{"count":6,"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/posts\/2122\/revisions"}],"predecessor-version":[{"id":3807,"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/posts\/2122\/revisions\/3807"}],"wp:attachment":[{"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/media?parent=2122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/categories?post=2122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.gravityflow.io\/wp-json\/wp\/v2\/tags?post=2122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}