When you link to a website you can send it a Webmention to notify it and then that website may display your post as a comment, like, or other response, and presto, you’re having a conversation from one site to another!

A Webmention is a notification that one URL links to another. Sending a Webmention is not limited to blog posts, and can be used for additional kinds of content and responses as well.

For example, a response can be an RSVP to an event, an indication that someone “likes” another post, a “bookmark” of another post, and many others. Webmention enables these interactions to happen across different websites, enabling a distributed social web.

The Webmention plugin supports the Webmention protocol, giving you support for sending and receiving Webmentions. It offers a simple built in presentation.


Follow the normal instructions for installing WordPress plugins.

Automatic Plugin Installation

To add a WordPress Plugin using the built-in plugin installer:

  1. Go to Plugins > Add New.
  2. Type “webmention” into the Search Plugins box.
  3. Find the WordPress Plugin you wish to install.
    1. Click Details for more information about the Plugin and instructions you may wish to print or save to help setup the Plugin.
    2. Click Install Now to install the WordPress Plugin.
  4. The resulting installation screen will list the installation as successful or note any problems during the install.
  5. If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions.

Manual Plugin Installation

There are a few cases when manually installing a WordPress Plugin is appropriate.

  • If you wish to control the placement and the process of installing a WordPress Plugin.
  • If your server does not permit automatic installation of a WordPress Plugin.
  • If you want to try the latest development version.

Installation of a WordPress Plugin manually requires FTP familiarity and the awareness that you may put your site at risk if you install a WordPress Plugin incompatible with the current version or from an unreliable source.

Backup your site completely before proceeding.

To install a WordPress Plugin manually:

  • Download your WordPress Plugin to your desktop.
  • If downloaded as a zip archive, extract the Plugin folder to your desktop.
  • With your FTP program, upload the Plugin folder to the wp-content/plugins folder in your WordPress directory online.
  • Go to Plugins screen and find the newly uploaded Plugin in the list.
  • Click Activate to activate it.

Perguntas frequentes

What are Webmentions?

Webmention is a simple way to automatically notify any URL when you link to it on your site. From the receivers perpective, it’s a way to request notification when other sites link to it.

That Sounds Like a Pingback or a Trackback

Webmention is an update/replacement for Pingback or Trackback. Unlike the older protocols, the specification is recommended by the W3C as well as an active community of individuals using it on their sites.

How can I send and receive Webmentions?

On the Settings –> Discussion Page in WordPress:

  • On the Webmention Settings page, decide which post types you want to enable Webmentions for. By default, posts and pages.
  • Set a page to redirect homepage mentions to. This will automatically enable Webmentions for that page.
  • If you want to enable a Webmention form in the comment section, check the box.

You can use the send_webmention($source, $target) function and pass a source and a target or you can fire an action like do_action('send_webmention', $source, $target).

How do I support Webmentions for my custom post type?

When declaring your custom post type, add post type support for Webmentions by either including it in your register_post_type entry. This can also be added in the Webmention settings.

How do I send/receive Webmentions for attachments?

You can enable receiving Webmentions for attachments in Webmention settings. You can enable sending Webmentions for media links in the settings. Please note that most receivers of Webmentions do not support receiving them to image, audio, and video files. In order to support receiving them on WordPress, Webmention endpoint headers would have to be added at the webserver level.

How can I handle Webmentions to my Homepage or Archive Pages?

Webmentions should be allowed on all URLs of a blog, however WordPress does not support this as only posts can have comments attached to them. The plugin currently handles only Webmentions on posts and allows you to set a page to receive homepage mentions.

Even though it is not done automatically, it is very simple to add support for archives and URLs on your site by providing a post/page to show collect mentions. The plugin provides a simple filter for that.

In the below example, if there is no page returned it will send mentions to a catch-all post. You can also have unique posts per URL.

function handle_other_webmentions($id, $target) {
  // do nothing if id is set
  if ($id) {
    return $id;

  // return "default" id if plugin can't find a post/page
  return 9247;
add_filter("webmention_post_id", "handle_other_webmentions", 10, 2);

Will a caching plugin affect my ability to use this?

The URL for the Webmention endpoint, which you can view in the source of your pages, should be excluded from any server or plugin caching.

As Webmention uses the REST API endpoint system, most up to date caching plugins should exclude it by default.

Why does this plugin have settings about avatars?

Webmentions have the ability to act as rich comments. This includes showing avatars. If there is an avatar discovered, the URL for it will be stored. This can either be reflect something from the media library or a URL of a file. If the file is broken, it will store a local
copy of the default gravatar image.

There are no Webmention headers on some pages of my site

Webmention headers are only shown if Webmentions are available for that particular URL. If you want to show it regardless, you can add below to your wp-config.php file.


How do I customize the display of my webmentions?

This plugin includes several enhancements to the built-in WordPress commenting system to allow for enhancement, while allowing existing methods to offer customization. It customizes the classic defaults for WordPress to account for webmentions by using a custom comment walker that minimally changes to defaults.
By default, many themes provide a custom callback to the wp_list_comments function. This plugin adds several enhancements to that. For one, the custom callbacks argument is usually a string with the function name. We enhance it to behave as normal in that case, but if an array is passed, to allow specific callbacks per the key of the array, or the ‘all’ key as a default. This means each comment type, which would be each webmention type or otherwise, can have its own custom callback.

It introduces a new version of the default function for html5 comments, adding correct microformats2 markup, and for webmentions, a proper site citation, e.g. Bob @ Example.Com as well as a hook, webmention_comment_metadata which offers a comment object as the sole argument, to add arbitrary metadata. This would be overridden by any custom comment rendering done by themes.

There is an option within the plugin to show webmentions not determined to be replies or comments inline, or to display them separately as avatar only lists. The wp_list_comments function is overridden to allow for the avatar_only option, which will render this, with a second option of overlay to overlay an icon reflecting the reaction type. Reactions are webmention types such as like, which there is no textual component to it. If you opt to display them as comments, the text will read that the author likes this post.

While not all display options can be settings, we are looking to provide some simple options which could be customized in a theme if needed.


9 Julho, 2020 1 reply
Though I believe that both this and the other Semantic Linkbacks plugin should be merged, both are well done, easy-to-use and expertly integrated into WordPress. Easiest way to begin integrating IndieWeb into your website.
9 Agosto, 2019 1 reply
This is fantastic. I joined indieweb a few days ago. Last night I wanted to know “So what actually does the technical implementation of a WebMention look like?”. I am now working on improving my understanding and perhaps I’ll create some documentation that I find easier than the w3c spec or a WP plugin. Great work, very patient team.
1 Novembro, 2017
Except for the conflict with Jetpack’s comment system and a quirky bug with emoji icons, this plugin works as expected.
Ler todas as 7 avaliações

Contribuidores e programadores

“Webmention” é software de código aberto. As seguintes pessoas contribuíram para este plugin:


“Webmention” foi traduzido para 8 locales. Obrigado aos tradutores pelas suas contribuições.

Traduza o “Webmention” para o seu idioma.

Interessado no desenvolvimento?

Consulte o código, consulte o repositório SVN, ou subscreva o registo de alterações por RSS.

Registo de alterações

Project and support maintained on github at pfefferle/wordpress-webmention.


  • Several small fixes


  • Fix fatal error


  • Fix facepiles for FSE themes
  • Fix remote Delete
  • Updated Readme and Assets


  • Fix null reference to comment_parent


  • Comment Walker was calling regular not html5 version of comment function when falling back.


  • Fix fatal PHP error


  • Fix pingback fallback (and happy birthday Matt https://ma.tt/2024/01/birthday-gift/)


  • Improve fallback handling to avoid “Anonymous” as post author


  • Fix issue where built in comment types were rejected


  • Do not bypass the spam filters
  • Support Source Update Notifications
  • Add in experimental Avatar Store


  • Replace comment_link only for Webmentions and only in the frontend


  • Replace comment_link only for Webmentions that have a source


  • Fix fatal error in WP parser


  • Allow variable to be null.


  • Bring back overflow option for facepile this time using the details tag
  • Add html link discovery for finding WordPress REST API
  • Load author page to find name/photo when only the URL is provided
  • Fix timezone issue where times were not properly converted into website time
  • Introduce webmentions_open function which determines if webmentions are open for a post. Currently a wrapper around pings_open
  • Misc minor fixes


  • Fixed: avoid enqueuing Webmention’s CSS stylesheet when it is not needed.
  • Fixed: threaded comments support.
  • Added: client URL validation.


  • Fix timezone issue causes exception


  • Remove built-in WordPress filtering in favor of plugin filtering of incoming webmentions.
  • If content is long and type is a mention, try to use the summary or name insteasd of full content as the display.
  • Fix issue where meta was overriding mf2
  • Improve JSON-LD handler


  • Several Parser/Handler fixes
  • Remove unnecessary loading of comments.php
  • Some Tool updates


  • Add mf2 author migration
  • Include spam and trash statuses for dupe check
  • Update tests and make u-url attrib optional for post-type discovery
  • Update dupe check
  • Set created at time only for new comments
  • Allow refreshing webmentions from the Bulk Actions menu
  • Remove Gravatar Cache
  • A lot of small improvements and fixes


  • Complete rewrite of the codebase
  • Introduce PHP namespaces
  • New parser which will fallback on the WordPress REST API, JSON-LD, or HTML meta tags if Microformats are not sufficient to render a comment.
  • New debugger/test tool for Webmention Parsing under Tools
  • Webmentions are no longer stored as comment type mention, but as custom comment types
  • New simplified presentation code, providing for optional custom templating in future


  • Fix XSS issue


  • Add onerror handling also for srcset ( props @florianbrinkmann for testing )


  • Re-add onerror handling for broken images ( props @snarfed )


  • Updated requirements


  • Remov Webmention_Notification class until proper tested/used


  • Update dependencies
  • Fix WordPress warnings


  • Move comment approve list and auto approve to the wp_allow_comment function called by the wp_new_comment function.
  • Minor fix to avatar function to account for the fact comments have an empty comment type


  • Cache in cases where stored avatar is a gravatar


  • Show Webmention form only if pings_open
  • Show Webmention form also if comments are disabled


  • Add settings for enabling Webmention support by public post type
  • Add setting for disabling sending media links…URLs attached to image, video, or audio tags
  • Switch from sending Webmentions to all URLs in post content to only ones with proper HTML markup
  • Support handling avatars if stored in meta
  • Support serving a local anonymous avatar if no email and cache whether there is a gravatar for a definable period of time
  • Store a Webmention protocol property in comment meta
  • Do not show Webmention headers if URL does not support Webmentions
  • Update Webmention meta template to use separate file which is shown on the edit comment screen
  • Minimum PHP version bumped to 5.4. WordPress currently has a minimum of 5.6 but we support back to version 4.9
  • For compatibility reasons, load a version of is_avatar_comment_type (introduced 5.1) and get_self_link (introduced 5.3) for use in this plugin
  • Improve all settings and template forms ( props @tw2113 )


  • Minor bug fix


  • Always enable Webmentions on basis that using plugin means you want Webmentions instead of using default pingback setting
  • Fix auto approve based on domain


  • Small HTML template changes


  • Added NodeInfo(2) support


  • Fixed default value of webmention_avatars on the settings page


  • Fixed default value of webmention_avatars


  • Set correct default value for the “Show comment form” setting


  • Store vouch property
  • Preliminary vouch support disabled by default. As Vouch is experimental can only be enabled by adding define( ‘WEBMENTION_VOUCH’, true )


  • Changed setting for avatar to consider null to be the same as yes


  • Fixed PHP issue


  • Updated GDPR text suggestion
  • Fixed old settings links
  • Made Webmention comment-form text customizable (#175)
  • Better handling of wp_add_privacy_policy_content call

Thanks Sebastian Greger


  • Added GDPR recommendation text
  • Implemented help tab
  • Form Improvements
  • Domain allowlist
  • Add avatar settings control
  • Text improvements

Thanks Sebastian Greger, David Shanske and Chris Aldrich


  • Added “threaded comments” support


  • Send delete Webmentions
  • Receive delete Webmentions


  • Added nicer HTML views for non API calls
  • Added german translations (thanks to @deponeWD)
  • Be sure to disable the old webmention-for-comments plugin


  • Add filter to allow setting of Webmention form text
  • Move register settings to init due new default options not being set if admin only
  • Add edit_webmention hook due comment array filtering
  • Display Webmention Meta on Edit Comment page


  • Added settings link
  • Added link to Homepage Webmention page
  • Enable pings for Homepage Webmentions


  • Add setting for homepage mentions (thanks @dshanske)
  • Remove deprecated functions due 4.8 release


  • moved endpoint discovery to functions.php
  • added missing i18n strings
  • removed polyfill


  • Enable option for page support
  • Allow custom post types to declare support for Webmentions as a feature which will enable pings.
  • Remove new meta properties from being added during preprocessing as these are added after Semantic Linkbacks Enhancement.
  • Move new meta properties to being built into Webmention code
  • Store Webmention source in comment meta but fall back to checking comment_author_url if not set.
  • Store Webmention creation time in comment meta as comment time is overridden by Semantic Linkbacks allowing to determine if a comment has been modified.


  • URLEncode/Decode source and target
  • Webmention Comment Type now declares support for avatars
  • Meta keys are now registered for webmention_target_url and webmention_target_fragment
  • Target URL is stored instead of derived from the permalink to ensure permanance
  • Target fragment is stored to support fragmentions. Can also suport comments when reply is to a comment.


  • added page support (server and client)
  • moved webmention_post_id filter to a global function (thanks @dshanske)
  • fixed https://wordpress.org/support/topic/form-for-entering-manual-pings-stays-on/
  • fixed some typos


  • Show endpoint discovery on every page again, to prevent several problems.


  • Plugin refactored to use API infrastructure.
  • Visiting the endpoint in a web browser now returns a Webmention form.
  • Plugin now compliant with draft specification although remains synchronous.
  • Deprecation of webmention_title and webmention_content filters in favor of a single targeted Webmention comment data filter.
  • webmention_post_send action now fires on all attempts to send a Webmention instead of only successful ones. Allows for logging functions to be added.
  • Supports adding additional parameters when sending Webmentions
  • Fix incompatibility with Ultimate Category Excluder plugin.


  • removed duplicate request for HTML via get_meta_tags
  • refactoring
  • limits to same domain


  • add salmon/crossposting-extension support (props @singpolyma)
  • disable self-pings via settings
  • do not unapprove already-approved Webmention (props @singpolyma)
  • some code improvements


  • switched to WordPress Coding Standard


  • some fixes and improvements



  • added more params to webmention_post_send (props to @snarfed)
  • removed rescedule of Webmentions (props to @snarfed)


  • use error-code 403 instead of 500 if Pingbacks/Webmentions are disabled for a post (thanks @snarfed)
  • added webmention_comment_parent filter


  • nicer title and content discovery
  • added post-id to webmention_links filter
  • improved publish_post_hook function
  • disabled flood control
  • nicer response value
  • some more filters/actions
  • added a default request “action” to be more flexible and to handle more than mentions on posts and pages
  • a lot of small fixes


  • prevent selfpings
  • added support for https and http
  • optimized some methods


  • fixed pseudo hook


  • fixed some warnings


  • now ready to use in a bundle


  • nicer feedback for the Webmention endpoint


  • nicer title and content discovery
  • added post-id to webmention_links filter
  • improved publish_post_hook function


  • small fixes
  • nicer excerpt extractor


initial release