<shortcode>_webapp_html

The Inline Google Spreadsheet Viewer shortcode webapp html hook.

Description

apply_filters( '<shortcode>_webapp_html', (unknown) $http_response_body, (unknown) $x ); 

Parameters (2)

0. $http_response_body (unknown)
The http response body.
1. $x (unknown)
The x.

Usage

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

Defined (1)

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

/inline-gdocs-viewer.php  
  1. $output = apply_filters($this->shortcode . '_webapp_html', $http_response['body'], $x);