How do I convert users who put an email and username for a comment into registered users? [duplicate]

To achieve this, create a new page template and use this code in that file. Then, use your submit form to redirect the user after commenting to the new page. $user_login = $_POST[‘user_login’]; $user_email = $_POST[‘user_email’]; $errors = register_new_user($user_login, $user_email); if ( !is_wp_error($errors) ) { $redirect_to = !empty( $_POST[‘redirect_to’] ) ? $_POST[‘redirect_to’] : ‘wp-login.php?checkemail=registered’; wp_safe_redirect( … Read more

How to change Akismet commenter privacy notice?

Aha, I finally got it working: <?php /* Plugin Name: Akismet Better Privacy Notice Description: Inform users about what’s actually happening with their data */ add_filter ( ‘akismet_comment_form_privacy_notice_markup’, ‘better_display_comment_form_privacy_notice’ ); function better_display_comment_form_privacy_notice() { echo sprintf( ‘<p class=”akismet_comment_form_privacy_notice”>’ . ‘Warning: This site uses Akismet to filter spam.’ . ‘ Until or unless I can find a … Read more

Comment_form and GD Star Rating

Got it! The key was a custom callback on wp_list_comments. Here’s the snippet of code I used within my comments: <?php if (defined(“STARRATING_INSTALLED”)) : ?> <div class=”rating” style=”float: right”> <?php wp_gdsr_comment_integrate_standard_result(get_comment_ID()); ?> </div> <?php endif; ?>

Actual comments not showing, but form is?

Your format looks a bit off to me. I’d try it more like this: <?php $fields = array( ‘author’ => ‘<p><label for=”author”><span class=”req”>* </span>’ . __( ‘Name’ ) . ‘</label><input id=”author” name=”author” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author’] ) . ‘” size=”30″‘ . $aria_req . ‘ /></p>’, ’email’ => ‘<p><label for=”email”><span class=”req”>* </span>’ . __( ‘Email’ … Read more

Custom comments form

I don’t think this the code/fucntion you want to change, This code/fucntion is just creating the form fields. You should look in your comments.php file for the changes that you are asking for.

How to remove website field in comment form?

Your theme should have a comments.php file. Can you just remove the field there? For instance, my comments.php files has the following code: <p class=”field”><label for=”url”><?php _e(‘Website’, ‘theme1721′); ?> </label><input type=”text” name=”url” id=”url” value=”<?php echo esc_attr($comment_author_url); ?>” size=”22″ tabindex=”3″ /></p> I would just remove it if I didn’t want visitors to have the option to … Read more