WordPress.org

Ready to get started?Download WordPress

Forums

Allow HTML in Category Descriptions
works as advertised (4 posts)

5 stars
  1. Dwenaus
    Member
    Posted 1 year ago #

    it's just a small snippit of code. i wrapped it in a filter and added it to my functions.php file. Works just as well.

    function sb_allow_category_desc_html() {
    	foreach ( array( 'pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description' ) as $filter ) {
    		remove_filter( $filter, 'wp_filter_kses' );
    	}
    	foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description' ) as $filter ) {
    		remove_filter( $filter, 'wp_kses_data' );
    	}
    }
    add_action( 'init', 'sb_allow_category_desc_html' );
  2. Arno Esterhuizen
    Member
    Plugin Author

    Posted 1 year ago #

    Indeed, that's pretty much all the plugin does. Creating a plugin just makes it easier to install for people not comfortable editing functions.php

    Thanks for your comment :)

  3. worthdesigning
    Member
    Posted 1 year ago #

    Thanks Arno ... does what it says.

    Yes - if people aren't comfortable editing their functions.php file then this plugin is ideal for them. Saying "it's just a small snippet of code" is a little derogotory. Could be worded better.

  4. Dwenaus
    Member
    Posted 1 year ago #

    I thought the 5 stars would balance that out. I personally don't like to install too many plugins.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.