wpseek.com
A WordPress-centric search engine for devs and theme authors



preprocess_comment › WordPress Filter Hooks

Since5.6.0
Deprecatedn/a
apply_filters( 'preprocess_comment', $commentdata )
Parameters:
  • (array) $commentdata Comment data.
    Required: Yes
Defined at:
Codex:

Filters a comment's data before it is sanitized and inserted into the database.





Source

$commentdata = apply_filters( 'preprocess_comment', $commentdata );