Edit the_content function
I want to edit the default function the_content(). I know i can add_filter(‘the_content’, ‘with_my_function’) but im having trouble outputting the old content with mine. Heres an example of what im doing. add_filter(‘the_content’, ‘my_function’); function my_function() { $write=”hello world”; $content = apply_filters(‘the_content’, get_the_content()); echo $write.$content; } How can i get this to work? 1 Answer 1 … Read more