Skip to content
A Micropub server plugin for WordPress
PHP Shell
Find file
Latest commit c3b8c9a Jul 28, 2015 @snarfed Merge pull request #15 from dshanske/master
Minor Fixes

README.md

wordpress-micropub

A Micropub server plugin for WordPress.

From micropub.net:

Micropub is an open API standard that is used to create posts on one's own domain using third-party clients. Web apps and native apps (e.g. iPhone, Android) can use Micropub to post short notes, photos, events or other posts to your own site, similar to a Twitter client posting to Twitter.com.

Once you've installed and activated the plugin, try using Quill to create a new post on your site. It walks you through the steps and helps you troubleshoot if you run into any problems. After that, try other clients like OwnYourGram, MobilePub, and Teacup.

Supports create, update, and delete, but not undelete. Supports these Micropub properties:

  • category maps to WordPress category if it exists, otherwise to WordPress tag
  • content
  • description
  • end
  • h=entry and h=event
  • in-reply-to
  • like-of/like
  • location is stored in WordPress standard geodata format
  • name
  • photo
  • published
  • repost-of/repost
  • rsvp
  • slug
  • start
  • summary
  • url

Adds one WordPress filter, before_micropub($wp_args), and one hook, after_micropub($post_id).

Delegates token handling to tokens.indieauth.com. If the token's me value matches a WordPress user's URL, that user will be used. Otherwise, the token must match the site's URL, and no user will be used.

For ease of development, if the WordPress site is running on localhost, it logs a warning if the access token is missing or invalid and still allows the request.

Stores microformats2 properties in post metadata with keys prefixed by mf2_. Details here.

This project is placed in the public domain. You may also use it under the CC0 license.

Something went wrong with that request. Please try again.