PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
paid-memberships-pro
/
includes
<?php /* Copyright 2011 Stranger Studios (email : jason@strangerstudios.com) GPLv2 Full license details in license.txt */ /** * A general function to start sessions for Paid Memberships Pro. * @since 1.9.2 */ function pmpro_start_session() { //if the session hasn't been started yet, start it (ignore if running from command line) if ( ! defined( 'PMPRO_USE_SESSIONS' ) || PMPRO_USE_SESSIONS == true ) { if ( defined( 'STDIN' ) ) { //command line } else { if ( version_compare( phpversion(), '5.4.0', '>=' ) ) { if ( session_status() == PHP_SESSION_NONE ) { session_start(); } } else { if ( ! session_id() ) { session_start(); } } } } } add_action( 'pmpro_checkout_preheader_before_get_level_at_checkout', 'pmpro_start_session', -1 ); /** * Close the session object for new updates * @since 1.9.2 */ function pmpro_close_session() { if ( ! defined( 'PMPRO_USE_SESSIONS' ) || PMPRO_USE_SESSIONS == true ) { if ( defined( 'STDIN' ) ) { //command line } else { if ( version_compare( phpversion(), '5.4.0', '>=' ) ) { if ( session_status() == PHP_SESSION_ACTIVE ) { session_write_close(); } } else { if ( session_id() ) { session_write_close(); } } } } } add_action( 'pmpro_after_checkout', 'pmpro_close_session', 32768 );
[+]
..
[-] services.php
[edit]
[-] recaptcha.php
[edit]
[-] upgradecheck.php
[edit]
[-] rest-api.php
[edit]
[+]
updates
[-] email.php
[edit]
[-] updates.php
[edit]
[-] states.php
[edit]
[-] license.php
[edit]
[-] content.php
[edit]
[-] login.php
[edit]
[+]
compatibility
[-] https.php
[edit]
[-] metaboxes.php
[edit]
[-] localization.php
[edit]
[-] deprecated.php
[edit]
[-] notifications.php
[edit]
[-] adminpages.php
[edit]
[-] capabilities.php
[edit]
[-] profile.php
[edit]
[+]
lib
[-] cleanup.php
[edit]
[-] countries.php
[edit]
[-] sessions.php
[edit]
[-] currencies.php
[edit]
[-] addons.php
[edit]
[-] functions.php
[edit]
[-] filters.php
[edit]
[-] xmlrpc.php
[edit]
[-] setup.sql
[edit]
[-] compatibility.php
[edit]
[-] admin.php
[edit]
[-] privacy.php
[edit]
[-] pointers.php
[edit]
[-] init.php
[edit]
[-] reports.php
[edit]