{"id":16008378,"date":"2022-09-14T09:48:15","date_gmt":"2022-09-14T09:48:15","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/recieving-array-fields\/"},"modified":"2022-09-14T09:48:15","modified_gmt":"2022-09-14T09:48:15","slug":"recieving-array-fields","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/recieving-array-fields\/","title":{"rendered":"Recieving array fields"},"content":{"rendered":"<p>Hello,<\/p>\n<p>Can can you fix this part of code that we can recieve the fields which CF7 return as an array?<\/p>\n<p>\/admmin\/class-activetrail-cf7-admin.php:416<\/p>\n<p>was:<br \/>\n<code>$clean_value = sanitize_text_field($_POST[$parts[0]]);<\/code><\/p>\n<p>is:<br \/>\n<code>$clean_value = (is_array($_POST[$parts[0]])) ? implode(&#039;,&#039;, $_POST[$parts[0]]) : sanitize_text_field($_POST[$parts[0]]);<\/code><\/p>\n","protected":false},"template":"","class_list":["post-16008378","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16008378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16008378\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16008378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}