How to update_comment_meta from checkbox in comments_custom_column?
How to update_comment_meta from checkbox in comments_custom_column?
How to update_comment_meta from checkbox in comments_custom_column?
Add functionality to block comment authors in the Comment edit pag
Best method for comment section associated with different images?
To show the proper count for the ‘Redacted’ link on the ‘all comments’ table list, you can use the get_comments() function to get the total number of ‘redacted’ comments and then update the link text to include this count. Here is an example of how you can modify the my_comment_link_add() function to do this: function … Read more
You need to hook into get_avatar() somewhere. There are plenty of options: get_avatar() itself is pluggable, so you can just replace the function wholesale but it assembles the <img> tag from, so it might be simpler to hook into get_avatar_url(), which itself is just a wrapper around get_avatar_data(), and leave get_avatar() to still build the … Read more
If you just want to add a string it would be: $city = “Re: ” . get_comment_meta( get_comment_ID(), ‘city’, true );
If you want to do it inside your theme, use functions.php. Else make a new plugin with this code on it and install it.
Check if your theme has its own comment template by going to [yoursite.com]/wp-admin/theme-editor.php (when logged in as an administrator). Then look at the right column and try to find comments.php file. If it’s there, it controls the way your comments are displayed, so you can manually delete hyperlinks and dates from it. If you can’t … Read more
Comment-Meta doesn’t work with latest wordpress update
You are saving your data with non-unique key (false as last argument), but retrieve it it as singular data (true as last argument). This is likely returning you the first voter on comment. You need to retrieve complete array of values and work with it to be operating on complete data.