wpsc_is_caching_user_disabled()
Check if caching is disabled for the current visitor based on their cookies
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wpsc_is_caching_user_disabled();
Код wpsc_is_caching_user_disabled() wpsc is caching user disabled WPSCache 1.12.4
function wpsc_is_caching_user_disabled() { global $wp_cache_not_logged_in; if ( $wp_cache_not_logged_in == 2 && wpsc_get_auth_cookies() ) { wp_cache_debug( 'wpsc_is_caching_user_disabled: true because logged in' ); return true; } elseif ( $wp_cache_not_logged_in == 1 && ! empty( $_COOKIE ) ) { wp_cache_debug( 'wpsc_is_caching_user_disabled: true because cookie found' ); return true; } else { wp_cache_debug( 'wpsc_is_caching_user_disabled: false' ); return false; } }