comment_save_pre

comment_save_pre

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('comment_save_pre') is found 1 times:

  • /wp-includes/comment.php line 2565
    	 * @since 1.5.0
    	 *
    	 * @param string $comment_content The comment data.
    	 */
    	$data['comment_content'] = apply_filters( 'comment_save_pre', $data['comment_content'] );
    
    	$data['comment_date_gmt'] = get_gmt_from_date( $data['comment_date'] );
    
    	if ( ! isset( $data['comment_approved'] ) ) {
    		$data['comment_approved'] = 1;
    	} elseif ( 'hold' === $data['comment_approved'] ) {