I’m using
add_action('the_content', 'myFunction', 10)
to append data to the end of the content.
How can I place content at the beginning of the content?
I’m using
add_action('the_content', 'myFunction', 10)
to append data to the end of the content.
How can I place content at the beginning of the content?
You must be logged in to post a comment.
the_content
is also a filter, into which the content is passed as an argument. You simply prepend your content and then return like so.