wpsc_is_rejected_cookie()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

wpsc_is_rejected_cookie();

Code of wpsc_is_rejected_cookie() WPSCache 1.8

function wpsc_is_rejected_cookie() {
	global $wpsc_rejected_cookies;
	if ( false == is_array( $wpsc_rejected_cookies ) ) {
		return false;
	}

	foreach ( $wpsc_rejected_cookies as $expr ) {
		if ( $expr !== '' && $match = preg_grep( "~$expr~", array_keys( $_COOKIE ) ) ) {
			wp_cache_debug( 'wpsc_is_rejected_cookie: found cookie: ' . $expr );
			return true;
		}
	}
	return false;
}