wp_cache_user_agent_is_rejected()
No Hooks.
Return
null
. Nothing (null).
Usage
wp_cache_user_agent_is_rejected();
wp_cache_user_agent_is_rejected() wp cache user agent is rejected code WPSCache 1.12.4
function wp_cache_user_agent_is_rejected() { global $cache_rejected_user_agent; if ( empty( $cache_rejected_user_agent ) || ! is_array( $cache_rejected_user_agent ) ) { return false; } $headers = apache_request_headers(); if ( empty( $headers['User-Agent'] ) ) { return false; } foreach ( $cache_rejected_user_agent as $user_agent ) { if ( ! empty( $user_agent ) && stristr( $headers['User-Agent'], $user_agent ) ) { return true; } } return false; }