checkBold

The Gravity PDF checkBold function.

Description

checkBold( (QueryPath) $qp ); 

Parameters (1)

0. $qp (QueryPath)
The qp.

Usage

  1. if ( !function_exists( 'checkBold' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-pdf/vendor/querypath/querypath/examples/docx.php'; 
  3.  
  4. // The qp. 
  5. $qp = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = checkBold($qp); 
  9.  

Defined (1)

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

/vendor/querypath/querypath/examples/docx.php  
  1. function checkBold($qp) { 
  2. $qp->children("w|rPr"); 
  3. return ($qp->children('w|b')->html()) ? true : false;