I need to put HTML code directly in post. It works, except for some css attributes :
Every time a "editor" or "admin" user try to type those attributes in a style properties :
The whole style properties is removed.
It works fine for the superadmin.
I tried to put this in my function.php :
remove_filter('content_save_pre', 'wp_filter_post_kses'); remove_filter('content_filtered_save_pre', 'wp_filter_post_kses');
But it doesn't work.
I tried to edit roles, but the "unfiltered_html" capabilities seems to be deprecated, and anyway, checked for both admin and editor by default.
I know this filter is for security. But my site will be accessible to only one user, so I can't assume he won't try to hack his own site.
Thank you very much
I found a page explaining the problem, but without the solution : http://shinephp.com/is-unfiltered_html-capability-deprecated/