tuftsceeo / smartpost

SmartPost is a dynamic templating and authoring tool that brings a lot of the features of the WordPress dashboard to the front end.
1 stars 4 forks source link

Disable category description filter to allow for html #39

Closed rafiyagi closed 10 years ago

rafiyagi commented 10 years ago

See: http://wordpress.org/support/topic/category-description-strips-html-tags

#!php

/*
  Plugin Name: HTML in Category Descriptions
  Version: 1.0
  Plugin URI:
  Description: Allows you to add HTML code in category descriptions
  Author: Arno Esterhuizen
  Author URI: ****
*/

$filters = array('pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description');
foreach ( $filters as $filter ) {
    remove_filter($filter, 'wp_filter_kses');
}

rafiyagi commented 10 years ago

Resolved this in the sp_save_cat_desc_ajax() function in the SP_Category_AJAX class.


Original Comment By: Rafi Yagi