I don’t know if this is possible, I’ve searched around but came up short. Basically, I need that the current user who is commenting to see his comments slightly different than the rest. I’m doing this for admins/moderators, but the thing is that all users see the highlighted comments made by admin/mod, where here I […]
I don’t know why, but it seems like the comment karma column is not used very much in plugins or otherwise. What would I need to do to hook into adding points to the comments karma column when a logged in user saves a comment?
I am working on constructing a ecommerce site that is run by woocommerce and the free woo theme artificer. Standard with the plugins there is a my account page which allows you to put in basic information. The users can also use their accounts to comment on blog posts. When they comment they currently have […]
I have been looking quite a long time for a way to stop people from posting external images in comments i e <img alt=”my photo” src=”http://example.co.uk/pic.jpg” /> and the image is displayed, without permission from the owner. This is hard coded somewhere in core but I can’t find a way to unset this behaviour. Thanks!
I’ve removed my old post here, as the posts_where method is outdated. Thanks to kaiser, this is now how easy it is to list most commented posts within a certain time span: <?php $popular = new WP_Query( array( ‘post_type’ => array( ‘post’ ), ‘showposts’ => 6, ‘cat’ => ‘MyCategory’, ‘ignore_sticky_posts’ => true, ‘orderby’ => ‘comment_count’, […]
The Codex for wp_list_comments states $reverse_top_level (boolean) (optional) Setting this to true will display the most recent comment first then going back in order. For my it is actually the opposite way. false option will display the latest comment as the first one and true option or if the option is not used at all […]
Do I need to prepare strings against MySQL Injection when inserting into the database using a WordPress comments function such as this: $data = array( ‘comment_post_ID’ => $post_id, ‘comment_author’ => $comment_author, ‘comment_author_email’ => $comment_email, ‘comment_content’ => $comment_body, ‘comment_type’ => ”, ‘comment_parent’ => 0, ‘user_id’ => 1, ‘comment_author_IP’ => ‘127.0.0.1’, ‘comment_agent’ => ‘Mozilla/5.0 (Windows; U; Windows […]
I want to, hopefully without a plugin, get and loop through all admin accounts and notify each admin when a comment has been posted or a user has registered, etc. I tried to look into this but all the solutions pointed to plugins and all the plugins are either bulky or outdated which totes sucks. […]
When sending a comment to the bin, the attached “comment replies” does not get trashed or deleted. How can you configure wordpress so that when you trash a comment, the comment replies automatically gets deleted?
I’m making a plugin which stores referrer data for comments. I already have my database table created, and the data is being stored correctly when a comment is made. Now I would like to attach a custom div to the comment block for each comment. How would I add a filter to the comment loop? […]