Skip to content

Instantly share code, notes, and snippets.

@rosshanney
Created March 31, 2013 13:18
Show Gist options
  • Save rosshanney/5280571 to your computer and use it in GitHub Desktop.
Save rosshanney/5280571 to your computer and use it in GitHub Desktop.
Alter allowed tags
<?php
/*
Plugin name: Alter allowed tags
*/
function gce_alter_allowed_tags() {
global $allowedposttags;
$allowedposttags['a']['data-toggle'] = true;
$allowedposttags['a']['data-target'] = true;
//$allowedposttags['a']['something-else'] = 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