3 | | A comment somewhere in here seems like an OK idea, but I wonder whether you've chosen the best place for it. It seems to me that we would want the filter to appear *after* all pre-processing has taken place (eg, setting 'comment_approved' based on context), but before any database-related sanitization takes place (eg, `wp_unslash()`). See, for example, the way that the similar 'wp_insert_post_data' filter works in `wp_insert_post()`. |
| 3 | A filter somewhere in here seems like an OK idea, but I wonder whether you've chosen the best place for it. It seems to me that we would want the filter to appear *after* all pre-processing has taken place (eg, setting 'comment_approved' based on context), but before any database-related sanitization takes place (eg, `wp_unslash()`). See, for example, the way that the similar 'wp_insert_post_data' filter works in `wp_insert_post()`. |