{"id":11405,"date":"2021-07-29T06:58:39","date_gmt":"2021-07-29T06:58:39","guid":{"rendered":"https:\/\/fluentforms.com\/?post_type=docs&#038;p=11405"},"modified":"2023-07-25T05:25:41","modified_gmt":"2023-07-25T05:25:41","password":"","slug":"fluentform_with_payment_submission_data","status":"publish","type":"docs","link":"https:\/\/fluentforms.com\/docs\/fluentform_with_payment_submission_data\/","title":{"rendered":"fluentform\/payment_submission_data"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"0-description\">Description&nbsp;<\/h2>\n\n\n\n<p>This filter is used during submission to et submission data when the form has a payment option.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php line-numbers\">apply_filters('fluentform\/payment_submission_data', $submission, $this->form)<\/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\/payment_submission_data', function ($submission, $form) {\n    \/\/ do your stuff\n    return $submission;\n}, 10, 2);<\/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>$submission<\/strong>(array) Submission Data<\/li>\n\n\n\n<li><strong>$form<\/strong> (object) Form Object<\/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 FluentFormPro\\src\\Payments\\Classes\\PaymentAction -> draftFormEntry()<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description&nbsp; This filter is used during submission to et submission data when the form has a payment option. 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 FluentFormPro\\src\\Payments\\Classes\\PaymentAction -> draftFormEntry()<\/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-11405","docs","type-docs","status-publish","hentry","doc_category-filter-hooks","knowledge_base-developer-documentation"],"acf":[],"year_month":"2026-06","word_count":85,"total_views":"645","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\/11405","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=11405"}],"version-history":[{"count":0,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/docs\/11405\/revisions"}],"wp:attachment":[{"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/media?parent=11405"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/doc_category?post=11405"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/doc_tag?post=11405"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/fluentforms.com\/wp-json\/wp\/v2\/knowledge_base?post=11405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}