You appear to be a bot. Output may be restricted
Description
Determines if we should start sessions
Usage
$bool = EDD_Session::should_start_session();
Parameters
Returns
bool
Source
File name: easy-digital-downloads/includes/class-edd-session.php
Lines:
1 to 33 of 33
public function should_start_session() { $start_session = true; if( ! empty( $_SERVER[ 'REQUEST_URI' ] ) ) { $blacklist = $this->get_blacklist(); $uri = ltrim( $_SERVER[ 'REQUEST_URI' ], '/' ); $uri = untrailingslashit( $uri ); if( in_array( $uri, $blacklist ) ) { $start_session = false; } if( false !== strpos( $uri, 'feed=' ) ) { $start_session = false; } if( is_admin() && false === strpos( $uri, 'wp-admin/admin-ajax.php' ) ) { // We do not want to start sessions in the admin unless we're processing an ajax request $start_session = false; } if( false !== strpos( $uri, 'wp_scrape_key' ) ) { // Starting sessions while saving the file editor can break the save process, so don't start $start_session = false; } } return apply_filters( 'edd_start_session', $start_session ); }