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

Capture and display users name

Use wp_get_current_user to get the current user (if any) then check or update the display name – update_user_meta or wp_update_user. When you have a user, you’ll probably want to set a flag on the user’s meta for after they have filled out their name, or prompt otherwise. How/where all this would go is really a … Read more

Add class when more page is visited

It seems you are looking for body_class() You can read more here A solution for adding a body class to a specific page template: add_filter( ‘body_class’, ‘custom_class’ ); function custom_class( $classes ) { if ( is_page_template( ‘page-example.php’ ) ) { $classes[] = ‘example’; } return $classes; } The result on the front-end: <body class=”page page-id-7 … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduseduseduseduedusedusedusedusedu