callbackFunction

The Gravity PDF callbackFunction function.

Description

callbackFunction( $index, $element ); 

Parameters (2)

0. $index
The index.
1. $element
The element.

Usage

  1. if ( !function_exists( 'callbackFunction' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-pdf/vendor/querypath/querypath/examples/techniques.php'; 
  3.  
  4. // The index. 
  5. $index = null; 
  6.  
  7. // The element. 
  8. $element = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = callbackFunction($index, $element); 
  12.  

Defined (1)

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

/vendor/querypath/querypath/examples/techniques.php  
  1. function callbackFunction($index, $element) { 
  2. print $element->tagName . PHP_EOL;