Using a Cron Job to dynamically populate a field ONCE, and then making the field blank the next time someone visits page

I’m gonna attempt an answer here: In your GF code, you’re going to need to have a snippet that checks the hidden field in the db first. IF value is blank.. THEN they are not a winner = Proceed. If value is ‘winner’.. then update value to blank… Proceed with ‘winner’ functionality. In your cron, … Read more

Session alternative for plugins (due to caching)

A similar question popped at [wp-hackers] and apparently Eric Mann‘s plugin, WP Session Manager, is the way to go. I haven’t analyzed the plugin’s code, so cannot tell about its inner workings. Pippin Williamson embeds WPSM in his Easy Digital Downloads plugin. Given Pippin’s review and Eric being such a pro-old-timer-wp-ninja, I wouldn’t look no … Read more

Can’t redirect to previous page after using GET

Do you have exit(); after the header(… ? Do you issue the header() before any headers are sent already? If that’s a WooCommerce then I believe you are doing it wrong. Instead, you should enable AJAX adding to cart (that’s not straightforward on the individual product listings, and you may need to modify the default … Read more

Parsing session info between WordPress and non-WordPress

Use javascript, loading from your app – example.com and save the relevant info in cookie. Then on the WordPress, again using javascript, loading from your app (this is important to be able to read cookie) to read value of that cookie and update the page accordingly.