Setting Cookies Via Hooks

Community Forums Forums General Discussion Setting Cookies Via Hooks

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  chad1008 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #91023


    Hi all,

    New Genesis user, have a quick question. I am attempting to set a cooking using PHP code, but I can’t seem to figure out which Genesis Hook will allow to run this code before any html is output.

    Any advice would be greatly appreciated!


    Bill Murray

    Even though you are using Genesis, you aren’t limited to Genesis hooks. WP has hooks too.

    Try init, as in:

    add_action( ‘init’, ‘somefunction’ );

    This will give you a sense of the core loading order in WP, which will point you in the right direction.

    Web: or Twitter: @wpperform

    We do managed WordPress hosting.




    Yeah. Holy “miss the forest for the trees.”


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.