comment_save_pre

comment_save_pre

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('comment_save_pre') is found 1 times:

  • /wp-includes/comment.php line 2537
    	 * @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'] ) {