mysql - Passing user id from the WP session to another PHP session
I have a WP site with a membership plugin.
On this site I have a PHP script which runs in an iframe.
They are using the same database.
I need to pass the id of the user to that script so it can use the user data from the database, is that possible?
you can add the session_start in your wp-config.php, just before the call of the wp-settings:
if (!session_id()) session_start();