how should the comment form really work?

If you want to redirect the user to somewhere else after they submit a comment, then all you have to do is include a hidden input in your comment form with the name of “redirect_to” and the value of the URL you want to redirect them to. The lines of code you posted show that … Read more

ask and edit an extra comment field

The get_comment_ID function was not working. So use following code in location_meta_call function function location_meta_call(){ $location = get_comment_meta($_GET[“c”],’location’, true); } add_filter(‘comment_save_pre’,’location_save’); function location_save($comment_content){ global $wpdb; $id = $_POST[‘comment_ID’]; $text = $_POST[‘location_meta_box_text’]; update_comment_meta($id , ‘location’, $text); return $comment_content; }

custom comment_form fields not displaying

I think you’re a bit confused about how comment_form works. So let’s take a look (this is in wp-includes/comment-template.php): <?php function comment_form( $args = array(), $post_id = null ) { // snip snip $fields = array( ‘author’ => ‘<p class=”comment-form-author”>’ . ‘<label for=”author”>’ . __( ‘Name’ ) . ‘</label> ‘ . ( $req ? ‘<span … Read more

stumped on add_action hook to delete_comment – any ideas?

Unless you’re passing $force_delete as true when calling wp_delete_comment(), the delete_comment hook doesn’t fire. This is because WordPress calls wp_trash_comment() at the beginning of wp_delete_comment() if $force_delete isn’t set true. Try hooking into the trash_comment action hook: function _dbdb_delete_comment( $comment_id ){ $filter = current_filter(); var_dump( $filter ); var_dump( $comment_id ); wp_die( __FUNCTION__ ); } add_action(‘delete_comment’, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)