use_google_chrome_frame
Filters whether Google Chrome Frame should be used, if available.
Использование
add_filter( 'use_google_chrome_frame', 'wp_kama_use_google_chrome_frame_filter' );
/**
* Function for `use_google_chrome_frame` filter-hook.
*
* @param bool $is_admin Whether to use the Google Chrome Frame.
*
* @return bool
*/
function wp_kama_use_google_chrome_frame_filter( $is_admin ){
// filter...
return $is_admin;
}
- $is_admin(true|false)
- Whether to use the Google Chrome Frame.
По умолчанию: value of is_admin()
Список изменений
| С версии 3.2.0 | Введена. |
Где вызывается хук
В файле: /wp-includes/vars.php
use_google_chrome_frame
wp-includes/vars.php 89
$is_chrome = apply_filters( 'use_google_chrome_frame', $is_admin );