The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Why are commenter IP addresses suddenly missing?
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
(@mikemynis)
Posts: 4
Active Member
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
[#11072]
After I updated my WP and WP Discuz to the latest versions (as per today oct, 29th 2025), I noticed that the IP addresses of comments are missing. Up until yesterday the IP addresses were visible, but now they're gone. Any idea what happened and how to get the IP's back? I use them to filter out trolls.
This topic was modified 4 months ago by
MikeMynis
Posted : 29/10/2025 4:11 pm
(@mikemynis)
Posts: 4
Active Member
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Aaargh, it's enforced 'privacy' in WP core. That makes me sick. I MUST know and identify trolls.
FIX it by adding this to your theme's functions.php file. It will ADD a column with the IP.:
// 1. Add the column header
add_filter( 'manage_edit-comments_columns', function( $columns ) {
// Insert right after the "Author" column
$new = array();
foreach ( $columns as $key => $title ) {
$new[ $key ] = $title;
if ( 'author' === $key ) {
$new['comment_ip'] = 'IP Address';
}
}
return $new;
} );
// 2. Fill the column
add_action( 'manage_comments_custom_column', function( $column, $comment_id ) {
if ( 'comment_ip' !== $column ) {
return;
}
$comment = get_comment( $comment_id );
$ip = $comment->comment_author_IP ?? '';
echo $ip ? esc_html( $ip ) : '<span style="color:#aaa;">—</span>';
}, 10, 2 );
Posted : 29/10/2025 4:55 pm
(@asti)
Posts: 8257
Illustrious Member Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Thank you for letting us know. Glad to hear that the issue is solved.
We're going to mark this thread as resolved. Feel free to open a new topic if you have further questions.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
Posted : 30/10/2025 1:58 pm
Super Globals
Options and Features