Inspecting Comment Metadata
Introduction
WordPress comments can store metadata beyond the standard comment content, author, and timestamp. PureDevs Any Meta Inspector extends its functionality to comment edit screens, allowing you to view all metadata associated with any comment in your WordPress installation.
Comment metadata is particularly useful when working with advanced commenting systems, review plugins, voting systems, or any plugin that extends WordPress comments with additional functionality.
Understanding Comment Metadata
Comment metadata is stored in the commentmeta database table and can include:
- Rating Systems: Star ratings, scores, vote counts
- Review Data: Detailed product review information
- Spam Detection: Akismet spam scores and flags
- Social Data: Social media profile links
- Moderation Info: Approval workflow data
- Custom Fields: Any additional comment data from plugins
Comment metadata support was added in WordPress 2.9. Most modern WordPress installations make extensive use of comment metadata through various plugins.
Accessing Comment Metadata
To inspect metadata for any comment:
- Navigate to Comments in the WordPress admin menu
- Hover over any comment and click Edit
- On the comment edit screen, scroll down
- Look for the “Comment Metadata” section or metabox
- All comment meta keys and their unserialized values will be displayed
You can also access comment metadata when viewing comments from the post edit screen by clicking “Edit” on individual comments.
Common Comment Metadata
Depending on your plugins and setup, you may encounter these types of comment metadata:
Akismet (Spam Protection)
akismet_result– Spam detection resultakismet_history– Comment moderation historyakismet_user– User who marked as spam/hamakismet_user_result– Manual moderation result
WooCommerce Reviews
rating– Product rating (1-5 stars)verified– Verified purchase status
Social Login Plugins
- Social media profile URLs
- Avatar URLs from social networks
- OAuth provider information
Comment Voting/Rating Plugins
- Upvote/downvote counts
- Vote tracking data
- Helpfulness ratings
- User voting history
Advanced Comment Systems
- Comment attachments or images
- Flagging and reporting data
- Notification preferences
- Subscription status
Practical Use Cases
1. Debugging Review Systems
When product reviews aren’t displaying correctly:
- Verify rating metadata is being saved
- Check rating values and formats
- Identify missing review data
- Debug review aggregation issues
2. Spam Investigation
When troubleshooting comment spam:
- Check Akismet scores and detection results
- Review spam detection metadata
- Understand why comments were flagged
- Debug false positive/negative issues
3. Plugin Development
When building comment-related features:
- Verify your plugin saves comment metadata correctly
- Check data structure and format
- Debug comment enhancement features
- Inspect how other plugins store comment data
4. Moderation Workflow
For advanced comment moderation:
- Track moderation history and decisions
- Review approval workflow metadata
- Identify patterns in flagged comments
- Audit moderation actions
Working with Comment Metadata
Metadata Display Format
The inspector displays comment metadata with:
- Meta Key: The field identifier
- Meta Value: The unserialized data
Unserialized Values
Complex comment metadata is automatically unserialized:
- Arrays are displayed in readable format
- Nested structures are properly formatted
- Object data is unpacked for inspection
- You see actual data, not PHP serialization syntax
Tips & Best Practices
Finding Comment Metadata
On the comment edit screen, the metadata section may appear:
- Below the comment content textarea
- In a metabox on the right side
- At the bottom of the edit form
No Metadata Displayed?
If a comment shows no metadata:
- The comment genuinely has no custom metadata
- Standard comments without plugin enhancements won’t have metadata
- Try viewing comments that are product reviews or have ratings
Bulk Inspection
To inspect metadata across multiple comments:
- Edit comments individually to view their metadata
- Look for patterns in metadata structure
- Identify which comments have specific metadata fields
PureDevs Any Meta Inspector is read-only. You cannot edit comment metadata through this plugin. Use the appropriate comment editing interface or database tools to modify values.
Privacy Considerations
Comment metadata may contain personal information:
- IP addresses and tracking data
- Email addresses and contact information
- Social media profile links
- User behavior and interaction data
When handling comment metadata, ensure compliance with privacy regulations. The inspector only displays data – it doesn’t collect, process, or share it. Always handle user data responsibly.
Troubleshooting
Metadata section not visible
- Verify the plugin is activated
- Check that you’re on the comment edit screen (not the comments list)
- Try refreshing the page
- Check browser console for JavaScript errors
Akismet metadata missing
- Akismet only adds metadata to comments it scans
- Old comments from before Akismet was installed won’t have this data
- Verify Akismet is active and configured
Rating metadata not showing
- Only product reviews or rated comments have rating metadata
- Check if the comment is actually a review
- Verify the review plugin is active
Was this article helpful?
Help us improve our documentation by providing feedback