mirror of
https://github.com/10h30/trestle.git
synced 2026-06-05 15:09:35 +09:00
21 lines
384 B
PHP
21 lines
384 B
PHP
<?php
|
|
/**
|
|
* Development utility functions.
|
|
*
|
|
* @since 2.1.0
|
|
*
|
|
* @package Trestle
|
|
*/
|
|
|
|
/**
|
|
* Custom logging function for development purposes.
|
|
*/
|
|
function trestle_log( $log ) {
|
|
if ( true === WP_DEBUG ) {
|
|
if ( is_array( $log ) || is_object( $log ) ) {
|
|
error_log( print_r( $log, true ) );
|
|
} else {
|
|
error_log( $log );
|
|
}
|
|
}
|
|
} |