lp__var_log( $var = null )
The lp__var_log function is used to dump a variable’s contents to the error log file. This is particularly useful for debugging purposes when you want to inspect the structure and values of a variable without affecting the output that might be displayed on the page.
Namespace
Launchpad
Parameters
mixed
$var
Variable to log.
Return
void
Source
File: \includes\lp-utility-functions.php
function lp__var_log( $var = null ) {
ob_start();
var_dump( $var );
lp__error_log( "(DUMP) : " . ob_get_clean(), false, false );
}