pre_comment_author_name

pre_comment_author_name

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_comment_author_name') is found 2 times:

  • /wp-includes/comment.php line 594
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
         * @since 1.5.0
         *
         * @param string $author_cookie The comment author name cookie.
         */
        $comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] );
        $comment_author = wp_unslash( $comment_author );
        $comment_author = esc_attr( $comment_author );
     
        $_COOKIE[ 'comment_author_' . COOKIEHASH ] = $comment_author;
    }
  • /wp-includes/comment.php line 2135
    2131
    2132
    2133
    2134
    2135
    2136
    2137
    2138
    2139
    2140
    2141
    * @param string $comment_agent The comment author's browser user agent.
     */
    $commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] : '' ) );
    /** This filter is documented in wp-includes/comment.php */
    $commentdata['comment_author'] = apply_filters( 'pre_comment_author_name', $commentdata['comment_author'] );
    /**
     * Filters the comment content before it is set.
     *
     * @since 1.5.0
     *
     * @param string $comment_content The comment content.