How to: Allow HTML in user profiles

December 4, 2008 at 8:34 am

Do you run a multi-author blog? If yes, you’re probably upset to be unable to use any html in user profile. Happilly, here’s a little recipe to allow html in user profiles.

To be able to use html in user profiles, simply append the following line of code to the functions.php file from your theme. (Create that file if it doesn’t exists)

remove_filter('pre_user_description', 'wp_filter_kses');

That’s all, authors are now allowed to use html in their profiles!

Thanks to Joost de Valk for this awesome recipe!

Tags: