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.

How to check if the user was redirected?

You can use wp_get_referer function to acheive your requirement. Below is the useful code snippet for you. function wdm_referer() { global $post; if( post type is child ) { $child_post_id = $post->ID; $parent_id = get_parent_course_id($child_post_id); // your custom function to get parent course id if( parent task is not completed ) { // a condition … Read more

Session is not working properly

Any caching solution will probably break sessions. Try turning off all caching (as well as CloudFlare proxy for your IP address) and see if your code works. If you have a WordPress caching plugin – turn that off too. If your hosting provider does some caching – turn that off too. After turning off all … Read more

Re-use Nonce in Repeating Event Signup Buttons

Nonces are not the way to solve your problem. You’re using it correctly. I would look at the $wpdb->insert array you’re probably using, and implement a check for data to exist that matches the proposed “new” entry. I actually set up a Twilio SMS to fire off when weird validation errors are encountered. I have … Read more