wp_super_cache_wptouch_cookie_check()
No Hooks.
Return
null
. Nothing (null).
Usage
wp_super_cache_wptouch_cookie_check( $cache_key );
- $cache_key (required)
- -
wp_super_cache_wptouch_cookie_check() wp super cache wptouch cookie check code WPSCache 1.12.4
function wp_super_cache_wptouch_cookie_check( $cache_key ) { if ( false === isset( $_COOKIE['wptouch_switch_toggle'] ) ) { return $cache_key; } if ( 'normal' === $_COOKIE['wptouch_switch_toggle'] || 'mobile' === $_COOKIE['wptouch_switch_toggle'] ) { return $_COOKIE['wptouch_switch_toggle']; } if ( isset( $_COOKIE['wptouch-pro-view'] ) ) { if ( 'desktop' === $_COOKIE['wptouch-pro-view'] ) { return 'normal'; } else { return $_COOKIE['wptouch-pro-view']; } } return $cache_key; }