Stripping comment HTML before inserted into database
-
add_filter( 'comment_text', 'wp_filter_nohtml_kses' );
This strips all HTML tags from the comment at the point just before it is displayed on screen. In this situation both the comment text and any HTML tags sit in the database.
Instead, I’d like to strip all HTML tags from the comment before it is inserted into the database. So, the
comment_text
tag isn’t what I’m looking for.Anyone know which tag I should use?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Stripping comment HTML before inserted into database’ is closed to new replies.