Semantic Linkbacks is a WordPress plugin that upgrades the presentation of linkback notifications (like Trackback, Pingback, or Webmention*) from the ugly default pingback presentation of "[…] random text excerpt […]" to a much more meaningful and user-friendly display as comments, reposts, likes, and favorites, detected using microformats2 markup from the source of the linkback.
For explicit in-reply-to interactions, the plugin also changes the WordPress comment type from "
webmention" to "
comment". Otherwise, it creates human readable whole sentences like "Alice liked this article on alice.example.com." with hyperlinks to the source author and permalink.
- WordPress plugin directory: https://wordpress.org/plugins/semantic-linkbacks/
- GitHub Development Repository: https://github.com/pfefferle/wordpress-semantic-linkbacks
Comment Type Indicator
For in-reply-to interactions, the plugin adds a "type" indicator in the comment metadata for the specific type of interaction:
- mention - Defaults to mention if another type cannot be determined, e.g. "Alice mentioned this article on alice.example.com."
This "type" indicator enables further interaction-specific presentation customization, such as showing likes/favorites and/or reposts as a facepile.
- Automatically embed facepiles (may not work on all themes)
- Initial number of faces for facepile
If you want to write your own parser for additional markup(such RDFa or Schema.org) you have to hook up the `semantic_linkbacks_commentdata` filter and update the array-fields.
The comment-array is a WordPress Comment with some extra-fields.
All fields beginning with _ like:
- `$commentdata['_canonical']` for the canonical source url
- `$commentdata['_type']` for the comment type. The plugin currently supports the following types: `mention`(default), `reply`, `repost`, `like`, `favorite`, 'tag', 'watch', 'read', 'listen', rsvp:yes, rsvp:no, rsvp:maybe, invited, rsvp:tracking.
- `$commentdata['_avatar']` for the author avatar
...are saved as comment metadata.