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



pre_comment_content › WordPress Filter Hooks

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

Filters the comment content before it is set.





Source

$commentdata['comment_content'] = apply_filters( 'pre_comment_content', $commentdata['comment_content'] );