{"id":11306,"date":"2021-07-27T08:59:25","date_gmt":"2021-07-27T08:59:25","guid":{"rendered":"https:\/\/fluentforms.com\/?post_type=docs&#038;p=11306"},"modified":"2023-07-24T10:08:49","modified_gmt":"2023-07-24T10:08:49","password":"","slug":"fluentform_create_default_settings","status":"publish","type":"docs","link":"https:\/\/fluentforms.com\/docs\/fluentform_create_default_settings\/","title":{"rendered":"fluentform\/create_default_settings"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"0-description\">Description&nbsp;<\/h2>\n\n\n\n<p>This filter returns default settings when creating a form. You can hook into this and modify the default settings according to your preference.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php line-numbers\">apply_filters('fluentform\/create_default_settings', $defaultSettings);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1-usage\">Usage&nbsp;&nbsp;<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php line-numbers\">add_filter('fluentform\/create_default_settings', function($defaultSettings) {\n    return $defaultSettings;\n}, 10, 1);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-parameters\">Parameters<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$defaultSettings<\/strong> (array) Default Settings<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3-placement\">Placement<\/h2>\n\n\n\n<p>This code should be placed in the&nbsp;<a href=\"http:\/\/codex.wordpress.org\/Theme_Development#Functions_File\" target=\"_blank\" rel=\"noopener\">functions.php<\/a>&nbsp;file of your active theme.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4-source-code\">Source Code<\/h2>\n\n\n\n<p>This filter is located in FluentForm\\App\\Models\\Form -> getFormsDefaultSettings($formId = false)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description&nbsp; This filter returns default settings when creating a form. You can hook into this and modify the default settings according to your preference. Usage&nbsp;&nbsp; Parameters Placement This code should be placed in the&nbsp;functions.php&nbsp;file of your active theme. Source Code This filter is located in FluentForm\\App\\Models\\Form -> getFormsDefaultSettings($formId = false)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"doc_category":[21],"doc_tag":[],"knowledge_base":[264],"class_list":["post-11306","docs","type-docs","status-publish","hentry","doc_category-filter-hooks","knowledge_base-developer-documentation"],"acf":[],"year_month":"2026-06","word_count":82,"total_views":"766","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"display_name":"Shahjahan Jewel","author_link":"https:\/\/fluentforms.com\/author\/gracious-kalam\/"},"doc_category_info":[{"term_name":"Filter Hooks","term_url":"https:\/\/fluentforms.com\/docs\/developer-documentation\/filter-hooks\/"}],"doc_tag_info":[],"taxonomy_info":{"doc_category":[{"value":21,"label":"Filter Hooks"}],"knowledge_base":[{"value":264,"label":"Developer Documentation"}]},"featured_image_src_large":false,"comment_info":0,"knowledge_base_info":[{"term_name":"Developer Documentation","term_url":"https:\/\/fluentforms.com\/docs\/developer-documentation\/","term_slug":"developer-documentation"}],"knowledge_base_slug":["developer-documentation"],"_links":{"self":[{"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/docs\/11306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/comments?post=11306"}],"version-history":[{"count":0,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/docs\/11306\/revisions"}],"wp:attachment":[{"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/media?parent=11306"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/doc_category?post=11306"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/doc_tag?post=11306"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/knowledge_base?post=11306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}