B
B
bpGusar2018-04-12 11:28:42
WordPress
bpGusar, 2018-04-12 11:28:42

How to remove any automatic text formatting after saving in Wordpress editor?

I mean everything that cuts out this or that, adds all sorts, etc., which would be inserted into the editor and saved.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Vorotnev, 2018-04-12
@HeadOnFire

1. We look at the file wp-includes/default-filters.php:

add_filter( 'the_content', 'capital_P_dangit', 11 );
...
add_filter( 'the_content', 'wptexturize' );
add_filter( 'the_content', 'convert_smilies', 20 );
add_filter( 'the_content', 'wpautop' );
add_filter( 'the_content', 'shortcode_unautop' );
add_filter( 'the_content', 'prepend_attachment' );
add_filter( 'the_content', 'wp_make_content_images_responsive' );
...
add_filter( 'the_content', 'do_shortcode', 11 );

These are all filters that hang on the_content.
2. Disable unnecessary ones with remove_filter() .
PS: And what specific formatting does not work? Often, by simple filtering "what is possible, what is impossible" the issue is solved simply once and for all, in the same wptexturize. Read more here .

R
Rasul Gitinov, 2018-04-12
@raselgit

CK Editor WordPress plugin ( link ). There seemed to be settings of this type

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question