The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Review all comments...
 
Share:
Notifications
Clear all

[Solved] Review all comments with images

4 Posts
2 Users
0 Reactions
975 Views
Posts: 6
Topic starter
(@jonas-andre)
Active Member
Joined: 4 years ago

Hey guys, is there any possibility to set all new comments with images to "review comment" state? We want to review all comments with images before they get online. This should count for all users (logged in and logged out).

 

Thank you. Sebastian

3 Replies
Asti
Posts: 7257
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi @jonas-andre,

There is no option for this. If you're using the wpDiscuz Media Uploader add-on you can easily filter the comments with attachments using the according button. 

Posts: 6
Topic starter
(@jonas-andre)
Active Member
Joined: 4 years ago

Thank you for your reply. But we have to review the comments with images before the comment get's published. Is there any hook we can use to flag all new comments to "review" that contain an image?

 

Thank you so much 🙂

Sebastian

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7257

@jonas-andre,

Please try this code it should work fine: 

add_action("comment_post", function ($comment_id) {
if (!empty($_POST["wmu_attachments"])) {
wp_set_comment_status($comment_id, "hold");
}
});
Share: