Prevent users to delete comments from trash
Prevent users to delete comments from trash
Prevent users to delete comments from trash
Yes, a quick search of developer.wordpress.org reveals comment_feed_where. Note that this won’t work with get_posts unless suppress filters is turned off, and that what you’re trying to do is going to be very slow with some unreliability. There is also comment_clauses: https://developer.wordpress.org/reference/hooks/comments_clauses/
I needed to use new WP_Comment_Query and set my $args to show only this post, with the meta attached. Hope this helps someone! <?php comment_form(); if (have_comments()) : ?> <div class=”container”> <div class=”btn-group flex”> <button type=”button” onclick=”window.location.href=”https://wordpress.stackexchange.com/questions/406158/<?php echo the_permalink();?>/?cmeta=ALL””>SHOW ALL</button> <button type=”button” onclick=”window.location.href=”<?php echo the_permalink();?>/?cmeta=BUY””>BUY</button> <button type=”button” onclick=”window.location.href=”<?php echo the_permalink();?>/?cmeta=SELL””>SELL</button> <button type=”button” onclick=”window.location.href=”<?php echo the_permalink();?>/?cmeta=TRADE””>TRADE</button> … Read more
Your comment replies do not work because you’re using a custom comment rendering callback function named better_comments, and this function hardcodes the classes IDs and other attributes rather than calling functions such as comment_ID. I strongly suggest abandoning this function, and instead opting for the default commenting from a default theme. This way you can … Read more
Currently your comment markup looks similar to the following: <li class=”comment byuser comment-author-rcotwunite odd alt thread-odd thread-alt depth-1″ id=”comment-7902″> <div id=”div-comment-7902″ class=”comment-body”> <div class=”comment-author vcard”><!– … –></div> <div class=”comment-meta commentmetadata”><!– … –></div> <div class=”filterDiv SELL show”> <div class=”container”> <p class=”wantosec”>I want to SELL</p> <p>SUP YALL im here to sell some stuff</p> <div class=”reply”><!– … –></div> … Read more
Allow / show post comments in category pages
Update So, I need to do an Ajax call to spam/delete/trash the comment I would actually also use AJAX, and secondly, I would use JS instead to add the action links — and personally, I think an edit_comment_link callback should return just one link (i.e. one a element).. but anyway, There are many ways to … Read more
Why will comments not remain open on custom post types?
displaying the last product comment in the woocommerce category
how show attachment image in comments query