• Is there a hook that I can use for adding a message to the top of the page from my plugin?

    I tried add_action and add_filter on get_header, but my text was added before the header instead of after it.

    Thanks

    Dave

Viewing 3 replies - 1 through 3 (of 3 total)
  • Never wrote a plugin, but WP has a sticky feature, maybe that’s something to look at.

    Thread Starter djeyewater

    (@djeyewater)

    Thanks for the suggestion, but I don’t think that would work unless my message appeared like a post (which I don’t want it to).

    Dave

    Hi, I’m looking for the same hook : call a function after printing the header without altering my theme. Have you found smthg?

    I’ve tried : add_action(“loop_start”, “myFn”); and add_action(“get_header”, “myFn”);
    But the first one is called before the main loop (post printing) and the second one before calling get_header…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hook for adding a message to top of page?’ is closed to new replies.