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?
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.
$content = "string to prepend" . $content;
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago
9 months ago