Skip to content

Commit e096728

Browse files
committed
Changinf spaces for tabs
1 parent 8f1a89c commit e096728

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

themes/osi/functions.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -433,20 +433,20 @@ function osi_wpdc_comment_body( string $comment_body ) {
433433
*/
434434
add_action('wpcf7_before_send_mail', 'save_form_data_to_cpt');
435435
function save_form_data_to_cpt($contact_form) {
436-
$submission = WPCF7_Submission::get_instance();
437-
if ($submission) {
438-
$data = $submission->get_posted_data();
439-
440-
$post_id = wp_insert_post(array(
441-
'post_title' => $data['your-name'],
442-
'post_type' => 'supporter',
443-
'post_status' => 'pending'
444-
));
445-
update_field('name', $data['your-name'], $post_id);
436+
$submission = WPCF7_Submission::get_instance();
437+
if ($submission) {
438+
$data = $submission->get_posted_data();
439+
440+
$post_id = wp_insert_post(array(
441+
'post_title' => $data['your-name'],
442+
'post_type' => 'supporter',
443+
'post_status' => 'pending'
444+
));
445+
update_field('name', $data['your-name'], $post_id);
446446
update_field('organization', $data['your-org'], $post_id);
447447
update_field('endorsement_type', $data['your-endorsement'], $post_id);
448448
update_field('quote', $data['your-message'], $post_id);
449-
} else {
449+
} else {
450450
error_log('WPCF7_Submission instance is null.');
451451
}
452452
}

0 commit comments

Comments
 (0)