Z
Z
Zhandos Kamenov2021-04-23 07:46:25
PHP
Zhandos Kamenov, 2021-04-23 07:46:25

How to replace auto tag with style tag in wordpress?

In WP editors (old / new), always set the tag to automatic and also store it in the database along with the tags, but now you need this tag to be, for example, and also go to the database.

Options are as follows:
1) It is not suitable to register in CSS, because the record is exported from the database to .doc/x and it is generally purple on CSS;
2) Add formatting and put the button in the editor ... already done, but everyone forgets to click on it and the porridge exits, and it’s not realistic to click on all the posts.

I think it can somehow put a filter on wpautop(); but I need at all without conditions. I did not find where it is written.

It would seem easy, turn turn into<p>Какой-то оооочень длинный текст</p>

<p style="color:red;"> Какой-то оооочень линный текст</p>


If there are those who know, tell me how to add to all tags<table>border="1"

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question