WordPress.org

Ready to get started?Download WordPress

Forums

Stopping theme header (1 post)

  1. shauno
    Member
    Posted 2 years ago #

    Hi all

    In the WordPress backend, you can send a URL with the GET variable noheader to exclude the header being outputted to the buffer. This is useful for anything requiring no output before your code, such as AJAX, setting cookies, etc.

    Is there an equivalent in the front end? I need to set cookies at certain URLs my plugin is hooking into, but obviously can't now as headers are already sent by buffers being outputted.

    Can anyone give me some direction?

Topic Closed

This topic has been closed to new replies.

About this Topic