Function Reference: geodir_error_log
Summary
This function has not been documented yet.
Filters
‘geodir_log_errors’ [Line: 138]
Source File
geodir_error_log() is located in geodirectory.php [Line: 132]
Source Code
function geodir_error_log($log){
/*
* A filter to override the WP_DEBUG setting for function geodir_error_log().
*
* @since 1.5.7
*/
$should_log = apply_filters( 'geodir_log_errors', WP_DEBUG);
if ( true === $should_log ) {
if ( is_array( $log ) || is_object( $log ) ) {
error_log( print_r( $log, true ) );
} else {
error_log( $log );
}
}
}