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 5 months ago.

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

    chad1008
    Member
    Post count: 3

    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!

    #91031

    Bill Murray
    Participant
    Post count: 572

    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.

    http://wpperform.com/core-loading-order-wordpress/


    Web: http://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #91053

    chad1008
    Member
    Post count: 3

    <facepalm>

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

    Thanks!

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

You must be logged in to reply to this topic.