Enables WebFinger (RFC 7033) support for WordPress.

About WebFinger:

WebFinger is used to discover information about people or other entities on the Internet that are identified by a URI using standard Hypertext Transfer Protocol (HTTP) methods over a secure transport. A WebFinger resource returns a JavaScript Object Notation (JSON) object describing the entity that is queried. The JSON object is referred to as the JSON Resource Descriptor (JRD).

(quote from the RFC)


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 “webfinger” 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.


How to extend the JRD file

You can add your own links or properties like that:

function oexchange_target_link( $array ) {
  $array["links"][] = array( 'rel' => 'http://oexchange.org/spec/0.8/rel/resident-target',
    'href' => 'http://example.com',
    'type' => 'application/xrd+xml' );
  return $array;
add_filter( 'webfinger_data', 'oexchange_target_link' );

Add alternate file/output formats

You can add your own links or properties like that:

function render_xrd($webfinger) {
  // set custom header();

  // JRD to XRD code

add_action( 'webfinger_render', 'render_xrd', 5 );

You can find a detailed example here https://github.com/pfefferle/wordpress-webfinger-legacy

The spec

WebFinger is specified as RFC 7033

The WebFinger community page

Please visit http://webfinger.net


Mijdar 11, 2023
I installed Webfinger and typed in the domain for my website into Mastodon instance photog.social. Mastodon immediately found ky ActivityPub endpoints.
Çile 20, 2023
Adding this plugin adds handling for the WebFinger protocol for your existing users. For example, when someone searches for you on Mastodon, your server will be queried for accounts using an endpoint that looks like this: GET ${MASTODON_DOMAIN}/.well-known/webfinger?resource=acct:${MASTODON_USER}@${MASTODON_DOMAIN} So, if you have a WordPress blog with the URL blog.domain and that blog has a user (you can see users in the Users admin panel) named user1, then the webfinger URL for that user would be: blog.domain/.well-known/webfinger?resource=acct:user1@blog.domain This plugin implements handling for such requests for any user on the WordPress site without any additional configuration.
Çile 15, 2023 1 reply
There’s no admin panel and the documentation isn’t clear about how to configure the plugin.
Read all 3 reviews

Contributors & Developers

“WebFinger” is open source software. The following people have contributed to this plugin.


Translate “WebFinger” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


Project maintained on github at pfefferle/wordpress-webfinger.


  • Added: better output escaping
  • Fixed: stricter queries


  • remove E-Mail address


  • fix typo


  • update requirements


  • fixed acct scheme for discovery


  • fixed typo (thanks @ivucica)
  • use acct as default scheme


  • make acct protocol optional


  • global refactoring


  • added user_nicename as resource
  • fixed WordPress coding standard issues


  • fixed PHP warning


  • updated requirements


  • add support for the ‘aim’, ‘ymsgr’ and ‘acct’ protocol


  • fixed the legacy code
  • added feeds


  • fixed ‘get_user_by_various’ function


  • Added WebFinger legacy plugin, because the legacy version is still very popular and used by for example OStatus (Mastodon, Status.NET and GNU Social)
  • Added Webfinger for posts support


  • composer support
  • compatibility updates


  • get_avatar_url instead of custom code
  • some small code improvements
  • nicer PHP-docs


  • updated version informations
  • support the WordPress Coding Standard


  • added correct error-responses
  • remove legacy support for XRD and host-meta (props to Will Norris)


  • small bugfix


  • complete refactoring
  • removed simple-web-discovery
  • more filters and actions
  • works without /.well-known/ plugin


  • small fixes
  • added “webfinger” as well-known uri


  • added “rel”-filter (work in progress)
  • added more aliases


  • added host-meta resource feature (see latest spec)


  • added 404 http error if user doesn’t exist
  • added jrd discovery for host-meta


  • fixed an odd problem with lower WordPress versions
  • added support for the https://wordpress.org/extend/plugins/extended-profile/ (thanks to Singpolyma)


  • api improvements


  • basic simple-seb-discovery
  • json support
  • some small improvements


  • some changes to support http://unhosted.org


  • OStatus improvements
  • Better uri handling
  • Identifier overview (more to come)
  • Added filters
  • Added functions to get a users webfingers


  • Added do_action param (for future OStatus plugin)
  • Author-Url as Webfinger-Identifier


  • Initial release