comment_save_pre

comment_save_pre

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comment_save_pre') is found 1 times:

  • /wp-includes/comment.php line 2565
    2561
    2562
    2563
    2564
    2565
    2566
    2567
    2568
    2569
    2570
    2571
    * @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'] ) {