WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to echo() or print() from publish_post action? (3 posts)

  1. rudestan
    Member
    Posted 3 years ago #

    Hi everyone. I just have a question: how can i print some HTML or JavaScript code when publish_post action is fired? It is possible only if i am using die() but that is not a good idea. I need everything to work as usual, but insert some JS code after publish_post fired and access all of the psot data as well. Is it possible?

  2. rudestan
    Member
    Posted 3 years ago #

    I found the solution!

  3. labwp
    Member
    Posted 3 years ago #

    So, what is the solution ? Don't want to share it ?^^

Topic Closed

This topic has been closed to new replies.

About this Topic