WP-Mix

A fresh mix of code snippets and tutorials

WordPress Allow HTML in Author Bio

By default, WordPress filters out any markup included in the description (bio) of user profiles. Here is a code snippet to allow HTML in author bios.

Very simple, just add the following code to your plugin or theme’s functions.php file:

remove_filter('pre_user_description', 'wp_filter_kses');

What this does is use remove_filter() to disable the wp_filter_kses filter from the user description. Once included, this code will let you or any user add markup to their profile description.

Learn more

Digging Into WordPressWordPress Themes In DepthWizard’s SQL Recipes for WordPress