File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -428,13 +428,13 @@ function osi_wpdc_comment_body( string $comment_body ) {
428428
429429
430430// trying to get an idea of what errors are happening
431- ini_set ('display_errors ' , 1 ); // Enable error display
432- add_filter ('wpcf7_debug ' , '__return_true ' );
433- error_reporting (E_ALL ); // Report all PHP errors
431+ // ini_set('display_errors', 1); // Enable error display
432+ // add_filter('wpcf7_debug', '__return_true');
433+ // error_reporting(E_ALL); // Report all PHP errors
434434
435435/**
436436 *
437- * Create a new Supporter CPT , based on Contact Forms 7.
437+ * Create a new Supporter in ACF , based on Contact Forms 7.
438438 *
439439 */
440440add_action ('wpcf7_before_send_mail ' , 'save_form_data_to_cpt ' );
@@ -450,6 +450,7 @@ function save_form_data_to_cpt($contact_form) {
450450 ));
451451 update_field ('name ' , $ data ['your-name ' ], $ post_id );
452452 update_field ('organization ' , $ data ['your-org ' ], $ post_id );
453+ update_field ('quote ' , $ data ['your-message ' ], $ post_id );
453454 } else {
454455 error_log ('WPCF7_Submission instance is null. ' );
455456 }
You can’t perform that action at this time.
0 commit comments