A WordPress-centric search engine for devs and theme authors



preprocess_comment ›

Since1.5.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 );