« first day (2049 days earlier)      last day (3194 days later) » 

17:22
@TomJNowell Ill look at that. Have some further ideas. I do enjoy coming up with ideas and learning more about WP that way but the documentation really needs an overhaul.
 
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)
How can I assign temporary permission to such user so that the comment can pass?
I think somehow the $data['type'] is not set at: return isset($data['type']) && $data['type'] === 'custom_comment' ? 1 : $approved;
I've checked with: return isset($data['comment_type']) && ($data['comment_type'] === 'custom_comment') ? 1 : $approved;
But no luck :(

« first day (2049 days earlier)      last day (3194 days later) »