Setting custom cookies in WordPress

1 – You can check for cookies and do your redirect using hooks that are called before any output like the ‘init’ hook: <?php // Hook the function “redirect()” on to the “init” action add_action(‘init’, ‘redirect’); // redirect() may redirect the user depending on the cookies he has function redirect(){ /* CODE */ } ?> … Read more

Is this Solution for Caches vs Cookies Going to Get Me in Trouble?

Your solution with comment_author_proxyhash cookie will of course technically work – all caching plugins I know doesn’t analyze hash value and will just stop delivery of cached content based on comment_author_* cookie presense. Problem here is that page caching functionality is something websites really need and often page caching is configured exactly because naked WordPress … Read more

How to include landing page with form submission?

Setting a cookie might be the best option. In case the visitor had js disabled, I figured it best to set the cookie in the http header using php. However, it seems that init is the last possible action WordPress will allow a cookie-setting function to hook into, but it fires too early for conditional … Read more

Automatic WordPress Login of Logged In ClickFunnels User

I have a client for whom I am building a ClickFunnel with the member area in LearnDash, an LMS that runs on WordPress. A key feature of this funnel is the ability to: Automatically add ClickFunnel customer to LearnDash membership for purchased product (done) Automatically create a WordPress Subscriber account upon successful purchase (done) Automatically … Read more