use_google_chrome_frame

Filters whether Google Chrome Frame should be used, if available.

Description

apply_filters( 'use_google_chrome_frame', (bool) $is_admin ); 

Parameters (1)

0. $is_admin (bool)
Whether to use the Google Chrome Frame. Default is the value of is_admin().

Usage

To run the hook, copy the example below.
  1. $is_admin = apply_filters( 'use_google_chrome_frame', $is_admin ); 
  2.  
  3. if ( !empty( $is_admin ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the use_google_chrome_frame callback 
  2. function filter_use_google_chrome_frame( $is_admin ) { 
  3. // make filter magic happen here... 
  4. return $is_admin
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'use_google_chrome_frame', 'filter_use_google_chrome_frame', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'use_google_chrome_frame', 'filter_use_google_chrome_frame', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-includes/vars.php  
  1. if ( $is_chrome = apply_filters( 'use_google_chrome_frame', $is_admin ) )