Skip to content

Instantly share code, notes, and snippets.

@ideadude
Created August 9, 2018 15:51
Show Gist options
  • Save ideadude/bdb2a670b76578ae77a30489fb1a44b7 to your computer and use it in GitHub Desktop.
Save ideadude/bdb2a670b76578ae77a30489fb1a44b7 to your computer and use it in GitHub Desktop.
Tell PMPro to start the PHP session earlier.
/**
* 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