wp_cache_user_agent_is_rejected()
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_cache_user_agent_is_rejected();
Код wp_cache_user_agent_is_rejected() wp cache user agent is rejected 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; }