wp_anonymize_comment

wp_anonymize_comment

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_anonymize_comment') is found 1 times:

  • /wp-includes/comment.php line 3916
    3912
    3913
    3914
    3915
    3916
    3917
    3918
    3919
    3920
    3921
    3922
    *                                        message (string). Default true.
     * @param WP_Comment  $comment            WP_Comment object.
     * @param array       $anonymized_comment Anonymized comment data.
     */
    $anon_message = apply_filters( 'wp_anonymize_comment', true, $comment, $anonymized_comment );
     
    if ( true !== $anon_message ) {
        if ( $anon_message && is_string( $anon_message ) ) {
            $messages[] = esc_html( $anon_message );
        } else {
            /* translators: %d: Comment ID. */