finished comment integration, it should be working now
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user