I’ve added a function to my theme’s functions.php file that executes when a post is published:
add_action('publish_post', 'mrh_my_function', 99);
Anyway, the function itself works fine; however, I want to echo out some information to the post edit screen after it’s finished the publishing process to display status information that my function was able to do xyz or it wasn’t. How do I go about this without getting a headers already sent error if I do a straight echo within my function?
Suppose I can just log what I need to a text file that I can view but there should be another way.
- The topic ‘How to echo infomation to admin/editor screen after publishing a post.?’ is closed to new replies.