Skip to content

Instantly share code, notes, and snippets.

View willtm's full-sized avatar

Will willtm

View GitHub Profile

Keybase proof

I hereby claim:

  • I am willtm on github.
  • I am willtm (https://keybase.io/willtm) on keybase.
  • I have a public key whose fingerprint is 7780 993C 17C0 F36D 8C5D 0706 5E78 39DF 0E5E E94B

To claim this, I am signing this object:

@willtm
willtm / annotation-kind-register.php
Last active April 19, 2022 15:40 — forked from dshanske/kind-register.php
Example Plugin for Registering Kinds(untested)
<?php
/**
* Plugin Name: Register Annotation Post Kind - Name
* Plugin URI: https://example.com
* Description: Register Annotation Post Kind
* Version: None
* Author:
* Author URI:
* Text Domain:
* Domain Path:
@willtm
willtm / kind-annotation.php
Created April 21, 2022 02:14 — forked from chrisaldrich/kind-annotation.php
My annotation template to be put into a sub-folder called `kind_views` in one's theme/child theme
<?php
/*
* Annotation Template
*
*/
$mf2_post = new MF2_Post( get_the_ID() );
$cite = $mf2_post->fetch();
if ( ! $cite ) {
return;