WordPress Webmention Plugin

From IndieWeb
(Redirected from Wordpress Webmention Plugin)

The WordPress Webmention Plugin is a WordPress plugin that adds webmention support to WordPress.

Incoming webmentions are added as comments to the original post and webmentions are sent when a post is published/updated.


Installation

The WordPress Webmentions plugin is available in the WordPress.org repository. The development version is available on Github. It is highly recommended that those using the Webmentions plugin also download and activate the Semantic Linkbacks plugin as well as it helps to better format and display received webmentions.


Configuration

While this plugin has its own settings, for it to work, you must enable link notifications.

  • Go to the Settings => Discussion page in your WordPress admin, and check the "Allow link notifications from other blogs (pingbacks and trackbacks)" and "Allow people to post comments on new articles" checkboxes.

Automatically approving

Webmentions often get caught in moderation and/or flagged as spam by Akismet and other spam filter plugins. The plugin has a built in whitelist for specific domains.

To automatically approve webmentions, add this PHP snippet to your theme's functions.php file:

function unspam_webmentions($approved, $commentdata) {
  return $commentdata['comment_type'] == 'webmention' ? 1 : $approved;
}

add_filter('pre_comment_approved', 'unspam_webmentions', '99', 2);

To approve webmentions received from previously-approved domains you can use this snippet: https://gist.github.com/gRegorLove/8215cb9c9584b364aaf4ef2999416f56


Issues and Brainstorming

  • The Webmentions plugin does not currently support asynchronous webmention processing, or deleting posts(mostly because WordPress doesn't have a status for deleted, only trashed).
  • There had been issues with the fact that the enhanced presentation benefits traditionally associated with Webmentions are located in the Semantic Linkbacks plugin and not in the webmentions plugin. New users were not aware of the need for both plugins. One reason for the separation was the need for brainstorming on a better implementation solution, but recent privacy concerns have given other considerations for separation. The functionality of the Semantic Linkbacks plugin was merged into the Webmention plugin.
  • Custom comment types do not have the level of support in WordPress as custom post(content) types or custom taxonomies... See(https://core.trac.wordpress.org/ticket/35214 and related). So, using webmention as a comment type is supported, but not fully integrated. Right now, the plugin only has one comment type...webmention. The question is if it should use the field to reflect 'like', 'bookmark' etc.
  • What properties should be extended off of the WordPress comment type to reflect a webmention need to be considered.

FAQ

Q: Is there a benefit to showing the Webmention field on your site? Does it actually get used? It feels like all of the Webmentions are automated through the protocol/API, not manually by copy and pasting a link.

A: There are some sites that have receiving implemented but not sending, and it was primarily meant for that. (This is probably most often people who are using webmention.io as their proxy endpoint by registering and adding a line of code to their header.)

It also serves to help visually indicate that your site supports the protocol if you don't have a button for it that points to something like https://example.com/wp-json/webmention/1.0/endpoint. For those that care or are in-the-know there are manual services like https://telegraph.p3k.io/send-a-webmention or http://mention-tech.appspot.com/ which could be used as well.

One can use the box on their own site to manually send oneself webmentions from other sites that don't send them, but which may be found in the wild or via refbacks

In the end, it's your site, so you can show or hide the box at your discression.


Related Plugins


WordPress
Topics Getting Started on WordPress β€’ Advanced WordPress Set Up β€’ Plugins β€’ Themes β€’ Examples β€’ WordPress with Bridgy β€’ Development β€’ Data β€’ Security
Primary Plugins Indieweb Plugin β€’ Webmention β€’ Semantic Linkbacks β€’ Micropub β€’ IndieAuth β€’ Post Kinds β€’ Syndication Links β€’ WebSub plugins
POSSE Plugins Syndication Links β€’ Social Network Auto Poster β€’ JetPack Publicize β€’ WP Crosspost β€’ Tumblr Crosspostr β€’ Diasposter β€’ Mastodon Autopost β€’ Bridgy Publish plugin (deprecated) β€’ Medium (deprecated)
PESOS Plugins Keyring Social Importers β€’ DsgnWrks Twitter Importer β€’ DsgnWrks Instagram Importer
Other Plugins IndieBlocks β€’ Shortnotes β€’ ActivityPub Plugin β€’ Aperture β€’ Refback plugin β€’ IndieWeb Press This β€’ WordPress MF2 Feeds Plugin β€’ WordPress uf2 β€’ OpenID β€’ Simple Location β€’ Parse This β€’ Indieweb Actions β€’ PressForward β€’ Yarns Indie Reader β€’ WhisperFollow β€’ blogroll2email
Themes SemPress β€’ (SemPress Child Themes: SemPress Lite, SenPress, and Index) β€’ Autonomie β€’ Independent Publisher β€’ IndieWeb Publisher β€’ mf2_s β€’ Twenty Sixteen IndieWeb-friendly fork β€’ IndieWeb Twenty Fifteen Theme β€’ Doublescores
Assistance Join the #indieweb chat β€’ IRC and other chat options β€’ WordPress FAQ β€’ WordPress Outreach Club β€’ Troubleshooting Tips β€’ WordPress tools β€’ WordPress channel
See also WordPress related wiki pages β€’ Category:WordPress plugins β€’ Category:WordPress themes β€’ Category:WordPress sessions β€’ WordPress.com β€’ WordPress using IndieMark β€’ AWS Tutorial


See Also

  • ...