Skip to content

Commit f4c56bb

Browse files
author
Ariel Jolo
committed
Removing errors verbosity + adding quote field
1 parent e5a3572 commit f4c56bb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

themes/osi/functions.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
440440
add_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
}

0 commit comments

Comments
 (0)