DOMPDF_DIR

The WooCommerce PDF Invoices & Packing Slips DOMPDF DIR constant.

Value (string)

str_replace(DIRECTORY_SEPARATOR, '/', realpath(dirname(__FILE__))) 

Usage

  1. if ( defined( 'DOMPDF_DIR' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'DOMPDF_DIR' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (1)

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

/lib/dompdf/dompdf_config.inc.php  
  1. define("DOMPDF_DIR", str_replace(DIRECTORY_SEPARATOR, '/', realpath(dirname(__FILE__))));