wp_anonymize_comment

wp_anonymize_comment

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_anonymize_comment') is found 1 times:

  • /wp-includes/comment.php line 3887
    		 *                                        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. */