post_content is stripping HTML when adding a new post? [closed]
When WP inserts a post one of the things it does is check both the current user’s capabilities, and which html tags are allowed to be used. There are two ways to modify this: Method 1: wp_kses_allowed_html hook You can modify the allowed set of html tags, given a context, by using this filter: https://codex.wordpress.org/Function_Reference/wp_kses_allowed_html … Read more