How to automatically evaluate comment content without user seeing the delay?

The desired results mentioned in the question were achieved by using the wp_schedule_event() function, now: The user always sees the “awaiting moderation” message without experiencing any delay. The API requests happen without the users experiencing delay, they happen asynchronously when anyone visits the page and the time interval given as argument to the wp_schedule_event() has … Read more

How do i remove “Website” field from WordPress comments

1. Using Plugins to disable Website field from comments There are many plugins available in the WordPress repository that remove the Website field from the blog comments. The most easy way is to install Remove Fields or Remove Comment Website/URL Box. https://wordpress.org/plugins/remove-fields/ 2. Editing the WordPress Files to remove the Website field from comments open … Read more

Get a total count for all comments and display result

Hi @stubudz: You are trying to make things easy on me today, right? 🙂 Here’s what you need: $comment_counts = get_comment_count(); echo $comment_counts[‘approved’]; //print_r($comment_counts); // Uncomment to see all from get_comment_count()

Show comments to unregistered users

Both display of comments and comment form should be handled in comments.php (or other template designated for that by theme). While comment_form() function does check if registration is required (and doesn’t output form to unregistered users in such case) wp_list_comments() does not perform such check, since it isn’t in line with native logic of this … Read more

Comment Form – E-mail Not Required!

Settings > Discussion > Other comment settings > uncheck Comment author must fill out name and e-mail Update Well, as far as WP is concerned these are glued together. You can add your own check for empty name, something like this (not tested): add_filter(‘preprocess_comment’, ‘require_comment_author’); function require_comment_author($commentdata) { if (” == $commentdata[‘comment_author’]) wp_die(‘Error: please enter … Read more

Remove post navigation links

First, it would be very helpful to know what Theme you’re using, so that we can give specific instructions/advice. Without knowing what Theme you’re using, we have no way of knowing what template file(s) to tell you to edit; however, those links are likely coming from these two tags: previous_post_link() (Codex reference) and next_post_link() (Codex … Read more

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