finished comment integration, it should be working now

This commit is contained in:
2026-03-17 13:47:55 +01:00
parent 76eb96666b
commit f58248a8e7
10 changed files with 689 additions and 29 deletions

View File

@@ -173,11 +173,62 @@ class Partnerexpo_Core_User_Fields extends Partnerexpo_Core {
wp_die( sprintf('<strong>%s</strong>: %s',__( 'Error', 'partnerexpo-core' ),__( 'Cég megadása kötelező!', 'partnerexpo-core' ) ) );
return false;
}
add_comment_meta(
$id,
'company',
sanitize_text_field($_POST['company'])
);
if ( isset($_POST['last_name']) ) {
add_comment_meta(
$id,
'last_name',
sanitize_text_field($_POST['last_name'])
);
}
if ( isset($_POST['first_name']) ) {
add_comment_meta(
$id,
'first_name',
sanitize_text_field($_POST['first_name'])
);
}
if ( isset($_POST['mail']) ) {
add_comment_meta(
$id,
'mail',
sanitize_text_field($_POST['mail'])
);
}
if ( isset($_POST['phone']) ) {
add_comment_meta(
$id,
'phone',
sanitize_text_field($_POST['phone'])
);
}
if ( isset($_POST['company']) ) {
add_comment_meta(
$id,
'company',
sanitize_text_field($_POST['company'])
);
}
if ( isset($_POST['gdpr']) ) {
add_comment_meta(
$id,
'gdpr',
sanitize_text_field($_POST['gdpr'])
);
}
if ( isset($_POST['newsletter']) ) {
add_comment_meta(
$id,
'newsletter',
sanitize_text_field($_POST['newsletter'])
);
}
return true;
}
}