gal_gather_scopes

The Google Apps Login gal gather scopes hook.

Description

apply_filters( 'gal_gather_scopes', (unknown) $this_get_default_scopes ); 

Parameters (1)

0. $this_get_default_scopes (unknown)
The this get default scopes.

Usage

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

Defined (1)

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

/core/core_google_apps_login.php  
  1. $scopes = array_unique(apply_filters('gal_gather_scopes', $this->get_default_scopes()));