-
-
Save andrewlimaza/1a8bf884bf5bf2c6c4e7776b3335a9a1 to your computer and use it in GitHub Desktop.
Tell PMPro to start the PHP session earlier.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add this code into a custom plugin. | |
* You could also add a direct call to session_start() in your wp-config.php | |
* or another piece of code that runs early. | |
*/ | |
add_action('plugins_loaded', 'pmpro_start_session'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment