Restrict conditions for something with mutliple add_actions?
-
I’m trying to develop a plugin which displays a small message in the top corner (including the Fade Anything Technique) when a comment is posted. This is very similar to the messages in the admin section when you publish a post. The problem I have is with the add_action.
If I use comment_post, I get an error as it tries to post the message (a simple div) in the header. Of course, if I use wp_head, then it posts on every page, not just when the comment is posted.
There was a similar problem on this topic, which was never resolved.
Any ideas how I could do it? I’m afraid I’m fairly new to plugin code.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Restrict conditions for something with mutliple add_actions?’ is closed to new replies.