V
V
Vitya Podpriklopolny2019-05-29 07:43:33
CMS
Vitya Podpriklopolny, 2019-05-29 07:43:33

What is the name of such a hook in WordPress?

Good afternoon
There is a post. And you need to display a certain html block immediately after it
. This is how a plugin is needed. (Exactly the plugin)
In the plugin I do manipulations with the database and collect the html block into a variable.
Now. I can't find a suitable hook for this... there is the_content and you can get content and output after it, but that's not what you want. What is needed is a type hook after the post.
That is, the plugin outputs something after the post.
Help me please!!!!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Druzhaev, 2019-05-29
@OtshelnikFm

What's wrong with the_content? All that needs to be added after the post - he does it. Set a higher priority - for example 1000 and it will be at the very end - what you need.

O
Odisseya, 2019-05-29
@Odisseya

If you haven't found a suitable hook, you can create your own custom hook or handle buffered output (with attention to load).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question