Custom user types getting html sanitized in posts July 17, 2022 by Tarik Billa You need 'unfiltered_html' => true, in your capabilities. you have an extra space in yours.