1 hour later…
18:36
@gmazzap I'm using
wp_new_comment()
and the pre_comment_approved
filter to approve my custom_comment
comment_type. But user that has no permission moderate_comments
, the custom_comment is not getting approved. (Reference)
I think somehow the
$data['type']
is not set at: return isset($data['type']) && $data['type'] === 'custom_comment' ? 1 : $approved;
« first day (2049 days earlier) ← previous day next day → last day (3194 days later) »