Stop auto-delete tags

by | 10 June 2021 | WordPress | 0 comments

For example, if you add an extra line in the editor by means of an enter, WordPress sometimes wants to remove it again as soon as you save a page or post.

You can prevent this automatic removal by adding the code below to the functions.php of the active theme.

function stop_removing_tags(){
remove_filter(‘the_content’, ‘wpautop’);
add_action(‘init’, ‘stop_removing_tags’);


Submit a Comment

Your email address will not be published. Required fields are marked *