Skip to content

Instantly share code, notes, and snippets.

@rosshanney
Last active December 15, 2015 20:58
Show Gist options
  • Save rosshanney/5322076 to your computer and use it in GitHub Desktop.
Save rosshanney/5322076 to your computer and use it in GitHub Desktop.
Adds <time> with datetime attribute to allowed post tags.
<?php
/*
Plugin name: Add time to allowed tags
*/
function gce_alter_allowed_tags() {
global $allowedposttags;
$allowedposttags['time'] = array(
'datetime' => true
);
}
add_action( 'plugins_loaded', 'gce_alter_allowed_tags' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment