Msg#: 4640030 posted 4:13 am on Jan 25, 2014 (gmt 0)
Msg#: 4640030 posted 2:30 pm on Jan 25, 2014 (gmt 0)
Ah. I think I see what's happening - guessing here. When you call add_action('init','set_mobile_cookie') the action you've chosen is 'init' - I'd suggest you look for a different one. Init is typically used to initialize plugins. Maybe take a look at wp_loaded instead.