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



comment_save_pre › WordPress Filter Hooks

Since1.5.0
Deprecatedn/a
apply_filters( 'comment_save_pre', $data['comment_content'] )
Parameters:
  • (string) $comment_content The comment data.
    Required: Yes
Defined at:
Codex:

Filters the comment content before it is updated in the database.





Source

$data['comment_content'] = apply_filters( 'comment_save_pre', $data['comment_content'] );