<shortcode>_query

The Inline Google Spreadsheet Viewer shortcode query hook.

Description

apply_filters( '<shortcode>_query', (unknown) $this_sanitizequery_atts_query, (unknown) $atts ); 

Parameters (2)

0. $this_sanitizequery_atts_query (unknown)
The this sanitizequery atts query.
1. $atts (unknown)
The atts.

Usage

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

Defined (1)

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

/inline-gdocs-viewer.php  
  1. $atts['query'] = apply_filters($this->shortcode . '_query', $this->sanitizeQuery($atts['query']), $atts);