For security reason, you should only use this code snippet on the blog you are the only author!

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

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.

After insert this code snippet, we can use HTML code in Author Box.



My name is Giang, a Vietnamese guy living in Thanh Hoa City, Vietnam. I am a WordPress Developer, learning to master WordPress and Laravel PHP Framework.

Leave a Reply

Notify of
Close Menu