Skip to content

Instantly share code, notes, and snippets.

@diije
Created June 12, 2013 13:23
Show Gist options
  • Save diije/5765191 to your computer and use it in GitHub Desktop.
Save diije/5765191 to your computer and use it in GitHub Desktop.
WordPress : activer l'utilisation du HTML dans les descriptions de catégories. Détails et explications : http://www.diije.fr/wordpress-autoriser-emploi-html-descriptions-categories/
<?php
$filters = array('term_description','category_description','pre_term_description');
foreach ( $filters as $filter ) {
remove_filter($filter, 'wp_filter_kses');
remove_filter($filter, 'strip_tags');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment